This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
User_Interface_Gestures_And_Controls
Pablo Candelas Gonzalez edited this page Oct 3, 2019
·
2 revisions
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;