Save current zoomlevel and center lat/lng

Apr 21, 2010 at 2:17 PM

Hi there,

I want to achieve the following: When i press a button i want to store the current zoomlevel and center lat/lng.

When a user made a change in the state of the map, for example when he zoomed in to an other location, i want to restore the previous settings when i press the button again.


I can store the zoomlevel, but what is the best way to get/store the center lat and lng?


Any idea?




Apr 21, 2010 at 2:26 PM


You push both zoom and position on the stack, so you can undo actions

Apr 21, 2010 at 2:51 PM


Stupid me... I was using this already for putting map in standard conditions.

Just changed the fixed 0.0, 0.0 for lat, lng.


Thanks for very quick reply.




Apr 21, 2010 at 7:09 PM

energize! ;}