android - 如何检测 Android MapView 是否已平移或缩放?

标签 android android-mapview

我正在创建一个基于 MapView 的可见区域搜索项目的 Android 应用。有没有办法在我的 MapView 上设置一个监听器来检测 map 何时被平移或缩放?

最佳答案

试试mapview-overlay-manager,它是android map 覆盖层的扩展,

它有一些简化的 OnGestureListener,几个例子:

onSingleTap(MotionEvent, ManagedOverlay, GeoPoint, OverlayItem)

onDoubleTap(MotionEvent, ManagedOverlay, GeoPoint, OverlayItem)

onLongPress(MotionEvent, ManagedOverlay, GeoPoint, OverlayItem)

onZoom(ZoomEvent, ManagedOverlay)

onScrolled(...)

链接:http://code.google.com/p/mapview-overlay-manager/希望对你有帮助

关于android - 如何检测 Android MapView 是否已平移或缩放?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2328650/

相关文章:

android - 谷歌地图V2的亮度很低

Android OSM droid - 设置最大缩放级别

android - 保存 Android MapView 并重新加载

objective-c - MKAnnotationView 不做任何事情

android - 在 Android 上使用 spongycaSTLe 而不是 bouncycaSTLe 的 Jsch

android - 如何在 android 网络库 (ION) 中使用自签名 SSL?

android - 防止 KeyEvent - 键码输入

android - appengine 连接的 android 项目在到达时死机

ios - 101 iOS MapKit,坐标和是对象变量,但按钮不是?

android - 向安卓手机发送 AT 命令