Georgi Koemdzhiev Georgi Koemdzhiev - 1 year ago 142
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!

Answer Source

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


I had to use this method:

mMap.getUiSettings(). setZoomGesturesEnabled(false);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download