Ejemplo n.º 1
0
 // UI settings of map
 private void mapUiSetting(boolean flag) {
   uiSettings.setZoomControlsEnabled(flag);
   uiSettings.setCompassEnabled(flag);
   uiSettings.setMyLocationButtonEnabled(flag);
   uiSettings.setScrollGesturesEnabled(flag);
   uiSettings.setZoomGesturesEnabled(flag);
   uiSettings.setTiltGesturesEnabled(flag);
   uiSettings.setRotateGesturesEnabled(flag);
 }
 public void disableGestures() {
   UiSettings uiSettings = googleMap.getUiSettings();
   uiSettings.setMyLocationButtonEnabled(false);
   uiSettings.setTiltGesturesEnabled(false);
   uiSettings.setZoomGesturesEnabled(false);
   uiSettings.setZoomControlsEnabled(false);
   uiSettings.setRotateGesturesEnabled(false);
   uiSettings.setMyLocationButtonEnabled(false);
   uiSettings.setScrollGesturesEnabled(false);
   uiSettings.setCompassEnabled(false);
 }