在地图上移动的Andr​​oid MapActivity在地、图上、Andr、oid

由网友(灵魂流浪者)分享简介:我要监控,当有人移动到另一个地方在地图上以 MapActivity ,但我不知道该怎么做。也许某种OnMapChange()的监听器?I want to monitor when someone moves to another place on the map in a MapActivity but I have...

我要监控,当有人移动到另一个地方在地图上以 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).

阅读全文

相关推荐

最新文章