2

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.

Shîvam Yadav
  • 157
  • 4
  • 13
  • 1
    You could use absorbpointer or ignore pointer: https://www.youtube.com/watch?v=65HoWqBboI8 or https://www.youtube.com/watch?v=qV9pqHWxYgI and check this out: https://stackoverflow.com/questions/55430842/flutter-absorbpointer-vs-ignorepointer-difference – CoderUni Sep 12 '20 at 05:51
  • 1
    Good luck in your flutter project :) – CoderUni Sep 12 '20 at 06:25

1 Answers1

0

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,
...)
Ilya
  • 82
  • 2
  • 4