Lock gestures

4 posts / 0 new
Last post
Josselin
Lock gestures

Hello,

Is there a way to prevent pan, zoom and rotation of the map

Regards.


MQBrianCoakley
Are you looking for a static
Are you looking for a static map? The static map api may be a simpler way to go if that's the goal.

Josselin
available in android sdk?

Sounds great, I need a map without any mouvement operation pan / rotation / zoom (only few selected levels), the camera will follow user's location  and he only needs to tap markers to see some infos.

Didn't find the static map, only in js sdk…
 


MQBrianCoakley
Static map is static - it
Static map is static - it doesn't follow the user.   You can get a UISettings object from MapboxMap and use it to setAllGesturesEnabled(false).