WP7更新Bing地图为你一起滚动 [英] WP7 updating bing map as you scroll along
问题描述
我使用一个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.
在这里查看文档:
<一个href="http://msdn.microsoft.com/en-us/library/microsoft.maps.mapcontrol.core.mapcore.viewchangeend.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/microsoft.maps.mapcontrol.core.mapcore.viewchangeend.aspx
这篇关于WP7更新Bing地图为你一起滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!