Skip to main content
 首页 » 编程设计

c#之WP7 在您滚动时更新 bing map

2024年02月23日30txw1958

我使用一个 iPhone 应用程序,它根据 map 位置显示来自 API 的 map 上的点,当您移动 map 时, map 会在几秒钟后更新并重新查询 API。我如何在必应 map 和 WP7 上实现这种“检测 map 中心变化”?

非常感谢。 丹

请您参考如下方法:

Bing map 控件公开了 ViewChangeStart 和 ViewChangeEnd,可用于检测 View 更改的开始和结束。您可以订阅这些事件,获取当前 View 并相应地查询您的 API。

请参阅此处的文档:

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