开发者

Android MapActivity on map movement

开发者 https://www.devze.com 2023-02-03 03:05 出处:网络
I want 开发者_JS百科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?You can extend the MapView c

I want 开发者_JS百科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?


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消