Reputation: 11931
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.
@Override
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;
mMap.getUiSettings().setZoomControlsEnabled(false);
....
Upvotes: 0
Views: 604
Reputation: 11931
It was very simple,I was using the wrong method. Instead of that
mMap.getUiSettings().setZoomControlsEnabled(false);
I had to use this method:
mMap.getUiSettings(). setZoomGesturesEnabled(false);
Upvotes: 3