How to set Android Google Maps API v2 map to show whole world map?
Posted
by
Joao
on Stack Overflow
See other posts from Stack Overflow
or by Joao
Published on 2012-12-08T17:01:49Z
Indexed on
2012/12/08
17:03 UTC
Read the original article
Hit count: 420
I am developing an android application that uses a google map in the background. When I start the application, I want to display a map of the hole word. According to the android google maps API v2: https://developers.google.com/maps/documentation/android/views the way to set a specific zoom value is "CameraUpdateFactory.zoomTo(float)" and the same api https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/CameraUpdateFactory#zoomTo(float) tells that the minimum argument to this function is 2. but when I call the function: mMap.moveCamera(CameraUpdateFactory.zoomTo(2)); The viewport of the world map is just a little bigger than Australia... How can I display the entire world map at once?
Thanks in advance, João
© Stack Overflow or respective owner