Artem  Lysenko
Artem Lysenko

Reputation: 1

Get the coordinates by the click on the map Windows Phone 8?

How to implement it? Map is Microsoft.Phone.Maps.Controls.Map.

Upvotes: 0

Views: 2028

Answers (2)

Sandeep Chauhan
Sandeep Chauhan

Reputation: 1313

try and use this to get location on tap on map ....

private void Map_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
     GeoCoordinate asd = this.Map.ConvertViewportPointToGeoCoordinate(e.GetPosition(this.Map));
}

i hope it will help ...

Upvotes: 4

prabhu.govindasamy
prabhu.govindasamy

Reputation: 93

First add the following reference Microsoft.Phone.Controls.Maps.dll and implement .xaml as follows

xmlns:maps="clr-amespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"

Upvotes: 0

Related Questions