How to install Google Maps API v2 map to display world map?

I am developing an Android application that uses a Google map in the background. When I launch the application, I want to display a word map of the hole. According to the Google Maps Android API v2: https://developers.google.com/maps/documentation/android/views, the way to set the specific zoom value is "CameraUpdateFactory.zoomTo (float)", and the same API is https: // developers .google.com / maps / documentation / android / reference / com / google / android / gms / maps / CameraUpdateFactory # zoomTo (float ) says that the minimum argument to this function is 2. but when I call the function: mMap.moveCamera (CameraUpdateFactory .zoomTo (2)); The world map viewport is slightly larger than Australia ... How can I display the entire world map at the same time?

PS: for this I use a sample Google code, in particular, "MarkerDemoActivity.java"

Thanks in advance, Joao

+5
source share
2 answers

My suggestion is that you cannot zoom below 2 or 3 due to an error when the VisibleRegion borders are not computed correctly when the displayed area is more than 180 degrees: http://code.google.com/p/gmaps-api-issues/issues/detail? id = 5285 .

If this error is corrected correctly ( LatLng returns), and not blocking zoom level 2 in this case, it can be very simple for Google Maps developers to let us display the entire map.

You might want to post a feature request to support level 0 increase.

0
source

We can cover the entire map in Android with this code:

 <com.google.android.gms.maps.MapView xmlns:map="http://schemas.android.com/apk/res-auto" android:name="com.google.android.gms.maps.SupportMapFragment" android:layout_width="match_parent" android:layout_height="wrap_content" map:cameraZoom="1" //or 0 map:liteMode="true" /> 
0
source

All Articles