There was an error while loading. Please reload this page.
By default, the map shows a toolbar with controls that the user can use to navigate the map. These controls are compass, zoom and tilt.
Our map engine also supports multiple gestures to navigate, such as pan, rotate, tilt, and zoom.
In some scenarios, it may be desirable to enable / disable these controls and/or gestures.
Android
MapUserInterfaceOptions uiOptions = mMap.getUserInterfaceOptions(); uiOptions.setZoomButtonsVisible(false); uiOptions.setZoomGestureEnabled(false);
Swift
let uiOptions = self.mapView.userInterfaceOptions uiOptions.zoomButtonsVisible = false uiOptions.zoomGestureEnabled = false
Objective-C
MSMapUserInterfaceOptions *uiOptions = self.mapView.userInterfaceOptions; uiOptions.zoomButtonsVisible = NO; uiOptions.zoomGestureEnabled = NO;
Home
Getting_Started
Overview
Reference