How to get geo coordinates from GestureEventArgs using bing map control?

旧时模样 提交于 2019-12-08 07:16:41

问题


I have WP7 application and using Hold event. Is it possible to get geocoordinates for a point I'm holdin my finger on?

Thank you


回答1:


Point p = e.GetPosition(this.MapMain);
GeoCoordinate geo = new GeoCoordinate();
geo = MapMain.ViewportPointToLocation(p);

geo now contains coordinates of tap.



来源:https://stackoverflow.com/questions/8526697/how-to-get-geo-coordinates-from-gestureeventargs-using-bing-map-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!