本文介绍了如何使用bing map控件从GestureEventArgs获取地理坐标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有WP7应用程序并使用Hold事件。是否有可能得到我的手指点的地理位置?谢谢
解决方案
点p = e.GetPosition(this.MapMain);
GeoCoordinate geo = new GeoCoordinate();
geo = MapMain.ViewportPointToLocation(p);
geo现在包含点击坐标。
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
解决方案
Point p = e.GetPosition(this.MapMain);
GeoCoordinate geo = new GeoCoordinate();
geo = MapMain.ViewportPointToLocation(p);
geo now contains coordinates of tap.
这篇关于如何使用bing map控件从GestureEventArgs获取地理坐标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!