Display the whole world with maps api v2

2019-03-04 15:01发布

问题:

i am developing an app, and i want to show the whole world. I am using google maps api v2, and i can't set zoom level less than 2. Is there any way to display the whole world with google api?

回答1:

Currently there is no way to do that. This is stated in the documentation that the lowest zoom level can be 2, but also depends on the map size in pixels. On bigger screens you can have it limited from 3 or possibly higher.

You are welcome to post a feature request on gmaps-api-issues site.

I suspect this limitation is there to force not to show more than half of the world and current implementation cannot handle it correctly. See this issue: http://code.google.com/p/gmaps-api-issues/issues/detail?id=5285



回答2:

The lowest zoom level supported changes on each device based on the screen size and density, and also depends on the map size.

You can use GoogleMap.getMinimumZoomLevel() to find out what it is for your map.

You may be able to see the whole world with the Lite Mode.