简体   繁体   English

Android Google Maps V2-相机移动事件

[英]Android Google Maps V2 - On Camera moving Event

I think my question is already obvious - I wish for a listener everytime the map Camera is changing. 我想我的问题已经很明显了-每当地图相机在变化时,我都希望有一个听众。

I already had on Touch event, on Dragged Event. 我已经有过Touch事件,Dragged事件。 However, I cannot catch the event when the map is moving (example, I strongly swipe the Google maps and the map is moving co-related to the force I exerted without my finger on the screen anymore. ) 但是,当地图移动时,我无法捕捉到该事件(例如,我强烈滑动Google地图,而地图移动与我不用手指在屏幕上时所施加的力相关。)

Please help.. Thank you very much! 请帮助。。非常感谢!

Does the onCameraChangeListener suit your needs? onCameraChangeListener是否适合您的需求?

If not, could you pass touch events to a gesture detector to detect all scrolls and flings manually, then manually control the corresponding map animation by repeatedly updating the map camera position? 如果没有,您是否可以将触摸事件传递给手势检测器以手动检测所有滚动和挥动,然后通过重复更新地图摄像头位置来手动控制相应的地图动画?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM