I have a right click menu at one of maps feature layer. when use clicks on 1 menu item he should be able to open google map with same cordinates
Like this url
Google Maps
so I have the code like this in this menu Item command:
private void OnGoogleMapOpen(object param)
{
var e = param as GraphicMouseButtonEventArgs;
MapPoint clickpoint = HpmMap.ScreenToMap(e.GetPosition(HpmMap));
double X = clickpoint.X;
double Y = clickpoint.Y;
var mercator = new WebMercator();
HtmlPage.Window.Navigate(
new Uri("https://www.google.com/maps/@"+X.ToString()+","+Y.ToString(), UriKind.Absolute),
"_blank");
}
I see x and y are not Lat/Long. How to get lat long for this graphic/ geometry.