Interacting with the map
A newer version of the Maps SDK is available
This page uses v6.4.1 of the Mapbox Maps SDK. A newer version of the SDK is available. Learn about the latest version, v11.8.0, in the Maps SDK documentation.
Gesture | Description | Related property |
---|---|---|
Pinch | Zooms in or out on the map's anchor point | zoomEnabled |
Rotation | Changes the MGLMapView direction based on the user rotating two fingers in a circular motion | rotateEnabled |
Single tap | Selects/deselects the annotation that you tap. | |
Double tap | Zooms in on the map's anchor point | zoomEnabled |
Two-finger tap | Zooms out with the map's anchor point centered | zoomEnabled |
Pan | Scrolls across mapView (note: if MGLUserTrackingModeFollow is being used, it will be disabled once the user pans) | scrollEnabled |
Two-finger drag | Adjusts the pitch of the MGLMapView | pitchEnabled |
One-finger zoom | Tap twice; on second tap, hold your finger on the map and pan up to zoom in, or down to zoom out | zoomEnabled |