Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

User_Interface_Gestures_And_Controls

Pablo Candelas Gonzalez edited this page Oct 3, 2019 · 2 revisions

User Interface Gestures and Controls

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.

User Interface Controls

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.

Examples

Disable Zoom Controls and 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;