map上添加图钉

            Pushpin pushpin = new Pushpin();
            GeoCoordinate location = new GeoCoordinate();
            location.Latitude = 40.1449;
            location.Longitude = -82.9754;
            pushpin.Location = location;
            pushpin.Background = new SolidColorBrush(Colors.Orange);
            pushpin.Content = "1";
            pushpin.FontSize = 30;
            map1.Children.Add(pushpin);

你可能感兴趣的:(map上添加图钉)