【问题标题】:How to get geo coordinates from GestureEventArgs using bing map control?如何使用 bing 地图控件从 GestureEventArgs 获取地理坐标?
【发布时间】:2011-12-15 21:14:34
【问题描述】:

我有 WP7 应用程序并使用 Hold 事件。是否可以获得我手指上某个点的地理坐标?

谢谢

【问题讨论】:

    标签: windows-phone-7 map geolocation bing


    【解决方案1】:
    Point p = e.GetPosition(this.MapMain);
    GeoCoordinate geo = new GeoCoordinate();
    geo = MapMain.ViewportPointToLocation(p);
    

    geo 现在包含点击的坐标。

    【讨论】:

    • 在 WP8 上是 ConvertViewportPointToGeoCoordinate 而不是 ViewportPointToLocation
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-01
    相关资源
    最近更新 更多