Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extending Google Maps Android API v2 to provide pan and zoom events

How can I extend Google Maps Android API v2 to detect when the Map has been panned or zoomed?

like image 583
Juliano Nunes Silva Oliveira Avatar asked Jan 13 '13 19:01

Juliano Nunes Silva Oliveira


People also ask

Can you use Google Maps and zoom at the same time?

Google Maps - cannot zoom and move at the same time with animateCamera, but can with moveCamera. Bookmark this question.

How do I zoom in Google Maps API?

Users can zoom the map by clicking the zoom controls. They can also zoom and pan by using two-finger movements on the map for touchscreen devices.

How do I put pans on Google Maps?

To pan around on a map, you can use the arrow keys to move north, south, east and west. You can also press two arrow keys together to move diagonally.


1 Answers

Add an OnCameraChangeListener to your GoogleMap via setOnCameraChangeListener().

like image 193
CommonsWare Avatar answered Sep 30 '22 21:09

CommonsWare