WP7 updating bing map as you scroll along

一曲冷凌霜 提交于 2019-12-24 10:36:26

问题


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?

Many thanks. Dan


回答1:


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.

See the documentation here:

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



来源:https://stackoverflow.com/questions/6511690/wp7-updating-bing-map-as-you-scroll-along

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!