Google Map doesn't zoom out very much - android

I have this map (supportMapFragment) and it doesn't zoom out more than this.
I remember that sometime ago I was able to zoom out till see the whole planisphere, but now I can't even see a continent!
The only thing I've changed is to use SupportMapFragment instead of MapFragment (because it's inserted in a SlidingPaneLayout, that wants support fragments). It's possibile that support map isn't able to zoom out more than this?
Thank you!

This is by design you cannot see the whole map, but it was already requested on gmaps-api-issues -> issue 5724 to support this. Star it to give it a higher priority.
I have a feeling that the above issue is blocked by another issue reported there.
From my observations there is no difference between SupportMapFragment and MapFragment when it comes to min zoom level. One thing that matters is device's screen size (or more specifically fragment's size).
From your screenshot I can see zoom level 3. If you want to be able to zoom out to 2, you have to make your fragment a bit smaller. Try adding 50dp margins as a test.

Based on documentation,
The desired zoom level, in the range of 2.0 to 21.0. Values below this range are set to 2.0, and values above it are set to 21.0. Increase the value to zoom in.
Not all areas have tiles at the largest zoom levels.
Googlemap gm;
LatLng cur_Latlng = new LatLng(21.0000, 78.0000);
gm.moveCamera(CameraUpdateFactory.newLatLng(cur_Latlng));
gm.animateCamera(CameraUpdateFactory.zoomTo(10));
gm.getUiSettings().setZoomControlsEnabled(true);
You can increase level from 2.0 to 21.0

Related

Android Maps Utils: How to change default GoogleMap clustering zoom level

Hao, stackoverflow!
I'm using Android Maps Utils to cluster markers, it's a little bit tricky, but generally ok.
Map Utils has some default value, on which zoom level it splits one cluster to several clusters or markers. I just need to do it earlier i.e. i need to start split items on bigger zoom level rather then default value.
I think it's not about shoudRenderAsCluster(cluster), cause this callback called already with splitted clusters after this default zoom level.
I've tried GridBasedAlgorithm (really strange behavior when zooming out) and NonHierarchicalDistanceBasedAlgorithm (it seems default).
Thanks!

How to calculate visible area from zoom? google maps api v2

I'm trying to achieve that camera update would center between two positions
BUT if resulting zoom level is bigger than 12 it should be set to 12.
So i need some:
CameraUpdateFactory.newLatLngBounds(bounds,padding);
But instead of padding there should be max zoom level.
My solution requires that i calculate exact screen bounds that will be after camera update and here i got stuck.
If you need to calculate map screen bounds, you should use VisibleRegion
VisibleRegion visibleRegion = googleMap.getProjection().getVisibleRegion();
read also this question, may be similar to what you need.

MapFragment : Set Minimum zoom

I'm currently developing an android application which uses the Google Maps API V2. As you can see in the topic title, the Map class extends MapFragment. What I want to do is set a minimum zoom so that, we could see all the continents on the screen when we zoom out. Currently, we can't see all the continents with the default map settings.
This is currently not possible to show entire world, but it has already been requested on gmaps-api-issues. Star that issue to give it a higher priority.
You can update the position of the camere + zoom level in this way:
mCameraZoom = 15.00f;
mMap.animateCamera(CameraUpdateFactory.newCameraPosition(CameraPosition.fromLatLngZoom(l, mCameraZoom)));

google map not visible in ice cream sandwitch when we zoom out to highest level

I have a Google Map application. When we zoom out to the highest level, the map
is not visible. Only some grey lines are seen as shown in the figure. This happens only in ice cream sandwitch. This doesn't' happen in Froyo.
This is because there isn't enough map information left to still fill the screen. You're at the point where the MapView would be showing the entire globe. You're getting the magnifying glasses with the (-) inside because the image data is not available for that zoom.
You have 1 of 2 options, 1, create a zoom checker... if the person zooms lower than (x) (5 or 4 would probably be a good zoomLevel), then reset the zoom level to (x). OR if you still need to show the entire world map, you can change your application to use landscape rather than portrait views. This same thing is happening with an application I'm developing, and I went with solution 1.

Android maps setZoom(19)

I have one marker displayed and centered in my ItemizedOverlay in maps, currently I call setZoom(19).
But how can I control the zoom level? i.e. I want to zoom in as detailed as possible, but still showing the map in satellite mode clear.
I have noticed that if you zoom in to far everything just goes black. How can I zoom into the most detailed level without going to far?
Any help most appreciated...
Just use
setZoom(mapview.getMaxZoomLevel());
https://developers.google.com/maps/documentation/android/reference/com/google/android/maps/MapView
the solution is: look at the UiSettings in api v2 reference, there is the "setMaxZoomLevel" and "setMinZoomLevel".
Setup the max zoom level to the one that doesn't show a black screen (make some tests), then call the setZoom(mapview.getMaxZoomLevel());
Regards.

Categories

Resources