WP7更新Bing地图为你一起滚动为你、地图、Bing

由网友(相思′化成泪)分享简介:我使用一个iPhone应用程序从依赖于地图位置的API在地图上显示点,当您移动地图,地图更新和重新查询后几秒钟的API。我将如何实现这个检测地图中心变革的必应地图和WP7?I use an iphone app which displays points on a map from an api depending...

我使用一个iPhone应用程序从依赖于地图位置的API在地图上显示点,当您移动地图,地图更新和重新查询后几秒钟的API。我将如何实现这个检测地图中心变革的必应地图和WP7?

I use an iphone app which displays points on a map from an api depending on the maps location, when you move the map, the map updates and re-queries the api after a couple of seconds. How would I achieve this 'detect map centre change' on bing maps and WP7?

非常感谢。 丹

推荐答案

在Bing地图控件公开 ViewChangeStart ViewChangeEnd 其可以被用于检测在视图的改变的开始和结束。您可以订阅这些事件,得到当前视图,并相应地查询你的API。

The Bing Maps control exposes ViewChangeStart and ViewChangeEnd which can be used to detect the start and end of a change in view. You can subscribe to these events, get the current view and query your API accordingly.

在这里查看文档:

http://msdn.microsoft.com/en-us/library/microsoft.maps.mapcontrol.core.mapcore.viewchangeend.aspx

阅读全文

相关推荐

最新文章