3

I want to disable the control of pinching to zoom in my app. How do I go about setting this?

John Conde
  • 217,595
  • 99
  • 455
  • 496
Jamie
  • 683
  • 2
  • 11
  • 16

2 Answers2

2

Disable all Gestures:

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

Disable just Zoom:

mapView.getMap().getUiSettings().setZoomControlsEnabled(false);
brasofilo
  • 25,496
  • 15
  • 91
  • 179
1
       mapView = (MapView) findViewById(R.id.mapview);
       mapView.setBuiltInZoomControls(false);
  • This didnt help on API lvl 8 (I guess it doesnt help at all?) The user can still zoom the mapView. Only setting clickable to false in the MapView does the job BUT this will prevent any click/tap recognition as it seems... – AgentKnopf Apr 21 '12 at 20:47