How can I disable the gestures in mapbox in flutter?

Viewed 393

Can I disable the gestures present in Mapbox in flutter such as zoom, moving through two-finger, etc? If yes, then please tell me. I have researched but found nowhere. If anyone of you know then please tell.

1 Answers

With flutter-mapbox-gl you may disable these when creating new MapboxMap widget by passing the following parameters.

MapboxMap(
                  scrollGesturesEnabled: false,
                  rotateGesturesEnabled: false,
                  tiltGesturesEnabled: false,
                  zoomGesturesEnabled: false,
...)
Related