如何获取可见的bing地图的角坐标? [英] How to get coordinates of corners of visible bing map?

查看:242
本文介绍了如何获取可见的bing地图的角坐标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows 8应用程序中使用必应地图",并且需要在多个位置显示图钉.

I'm using Bing Maps in a windows 8 app and I need to display pushpins at numerous locations.

有什么方法可以获取可见地图拐角处的GPS坐标吗?

Is there any way to get the GPS coordinates of the corners of the visible map?

或者是一种获取可见地图距离的方法? (例如40公里宽,60公里高)

Or alternatively a way to get the distance of the visible map? (e.g. 40km width, 60km height)

我需要这样做,以便将贴在地图上的图钉的数量限制为仅在地图的可见部分上.

I need this in order to limit the number of pushpins I attach to the map to just being the ones on the visible part of the map.

推荐答案

您可以直接从地图实例的 Bounds 属性中获取此信息,该属性返回由Northwest和Southeast lat定义的LocationRect/lng位置显示在当前视图中. http://msdn.microsoft.com/en-us/library/hh846504.aspx

You can get this information directly from the Bounds property of the map instance, which returns a LocationRect defined by the Northwest and Southeast lat/lng locations shown in the current view. http://msdn.microsoft.com/en-us/library/hh846504.aspx

这篇关于如何获取可见的bing地图的角坐标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆