This is a migrated thread and some comments may be shown as answers.

Right click location

2 Answers 146 Views
Map
This is a migrated thread and some comments may be shown as answers.
MrSzymonello
Top achievements
Rank 1
MrSzymonello asked on 14 Dec 2016, 10:35 AM
In my scenario on right button click on the map I'd like to display context menu. I cannot figure out how to get geographical location at position where right click was made. Could you guide how to get geo position after right button is clicked?

2 Answers, 1 is accepted

Sort by
0
Peter
Top achievements
Rank 1
Veteran
answered on 14 Dec 2016, 12:24 PM

I think this does it (where RadMap is the x:Name of your map control in xaml):

var position = Mouse.GetPosition(RadMap);
var loc = Location.GetCoordinates(RadMap, position);

 

Pete

 

0
MrSzymonello
Top achievements
Rank 1
answered on 14 Dec 2016, 03:59 PM
Thank you Peter for your answer! Is very helpful.
Tags
Map
Asked by
MrSzymonello
Top achievements
Rank 1
Answers by
Peter
Top achievements
Rank 1
Veteran
MrSzymonello
Top achievements
Rank 1
Share this question
or