0

I was wondering if anyone has an example of how to extract the geoposition(Lat,Lon) from a mouse click on the Bing Maps control. Pretty much I am launching the maps control, and I need to be able to take the Coordinates that are chosen via mouse click(double click) and pass them back into my UWP app.

rbrundritt
  • 16,570
  • 2
  • 21
  • 46
kdun0508
  • 75
  • 10
  • 2
    Possible duplicate of [MapControl get tapped location UWP](https://stackoverflow.com/questions/38617385/mapcontrol-get-tapped-location-uwp) – rbrundritt May 18 '18 at 16:23

1 Answers1

2

private void Map_MapTapped(Windows.UI.Xaml.Controls.Maps.MapControl sender, Windows.UI.Xaml.Controls.Maps.MapInputEventArgs args)
{
    var GeoPosition = args.Location.Position;
    string status = "MapTapped at \nLatitude:" + GeoPosition.Latitude + "\nLongitude: " + GeoPosition.Longitude;
    rootPage.NotifyUser( status, NotifyType.StatusMessage);
}

here is a answer

Amit Khese
  • 102
  • 11