Point clickPoint = e.GetPosition(mapControl);
            PointLatLng point = mapControl.FromLocalToLatLng((int)clickPoint.X, (int)clickPoint.Y);
            GMapMarker marker = new GMapMarker(point);
            marker.Shape = new Ellipse
            {
                Width = 50,
                Height = 50,
                Stroke = Brushes.Black,
                StrokeThickness = 1.5
            };
            marker.Shape = new Ellipse
            {
                Width = 10,
                Height = 10,
                Stroke = Brushes.Red,
                StrokeThickness = 1.5,
                ToolTip = "This is tooltip",
                Visibility = Visibility.Visible,
                Fill = Brushes.Red,

            };
            marker.Shape = new Image
            {
                Width = 50,
                Height = 50,
                Source = new BitmapImage(new System.Uri("pack://application:,,,/DevExpress.Images.v18.1;component/DevAV/Actions/Edit_32x32.png"))
            };
            mapControl.Markers.Add(marker);

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注