rahulroy9202
rahulroy9202

Reputation: 2848

Ask user to point a location in map Windows Phone

I want the user to select a point of his choice on a map and get the GeoCoordinate of that point. How can I achieve this?

I am currently able to launching a map. Is there something similar to the photoChooser Task which I can use to achieve this?

Upvotes: 0

Views: 171

Answers (1)

FunksMaName
FunksMaName

Reputation: 2111

This might help

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

Upvotes: 1

Related Questions