Android地图获取滚动事件 [英] Android Maps get Scroll Event
问题描述
我目前正在开发与Andoid地图SDK的应用程序。
i am currently developing an app with the Andoid Maps SDK.
现在我想获得一个通知,如果用户滚动地图从基于新的地图中心的服务器加载额外的标记。
Now i would like to get a notice if the user scrolls the map to load additional markers from a server based on the new map center.
我已经寻找一个函数来注册一个监听器,但我didn't发现任何东西。
I already searched for a function to register a listener but i didn´t find anything.
有没有什么办法让地了解地图中心的变化?我不想要实现一个轮询机制,该...:(
Is there any way to get informed about map center changes? I don´t want to implement a polling mechanism for that... :(
推荐答案
看看下面的博客文章(自带Github上code): http://bricolsoftconsulting.com/extending-mapview-to-add-一个变化事件/
Take a look at the following blog post (comes with Github code): http://bricolsoftconsulting.com/extending-mapview-to-add-a-change-event/
这篇关于Android地图获取滚动事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!