在地图上移动的Andr​​oid MapActivity [英] Android MapActivity on map movement

查看:106
本文介绍了在地图上移动的Andr​​oid MapActivity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要监控,当有人移动到另一个地方在地图上以 MapActivity ,但我不知道该怎么做。也许某种OnMapChange()的监听器?

I want to monitor when someone moves to another place on the map in a MapActivity but I have no idea how to do that. Maybe some sort of OnMapChange() listener?

推荐答案

您可以扩展的MapView类添加必要的地图变化事件。 http://bricolsoftconsulting.com/extending-mapview-to-add-一个变化事件/

You can extend the MapView class to add the necessary map change event. http://bricolsoftconsulting.com/extending-mapview-to-add-a-change-event/

以上的职位向您展示了如何通过几乎所有的方式,你可以与地图交互检测缩放和平移:刷卡(泛),变焦控制+/-(缩放)和捏(用于组合平移和缩放)。

The post above shows you how to detect zooming and panning via virtually every way you can interact with the map: swipe (for pan), zoom control +/- (for zooming) and pinch (for combined pan and zoom).

这篇关于在地图上移动的Andr​​oid MapActivity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆