Android - disable Pinch zoom control in the Google Maps API

I want to disable clamp control in order to zoom in on my application. How do I set this up?

+3
source share
2 answers
       mapView = (MapView) findViewById(R.id.mapview);
       mapView.setBuiltInZoomControls(false);
+1
source

Disable all gestures:

mapView.getMap().getUiSettings().setAllGesturesEnabled(false);

Disabling just Zoom:

mapView.getMap().getUiSettings().setZoomControlsEnabled(false);
+1
source

Source: https://habr.com/ru/post/1789980/


All Articles