Georgi Koemdzhiev Georgi Koemdzhiev - 6 months ago 46
Android Question

Disabling Zoom out on a GoogleMap object. [Android, Google Maps API]

I am trying to disable the zoom (or set a unchangable zoom level) on my GoogleMap object. I did try disabling the Zoom Controls to false but that did not work for some reason. [I am using the SupportMapFragment if it helps]

public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;


Any ideas please? Thank you!


It was very simple,I was using the wrong method. Instead of that


I had to use this method:

mMap.getUiSettings(). setZoomGesturesEnabled(false);