mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

Configuration to disable all gestures

Open pengdev opened this issue 4 years ago • 1 comments

While we expose granular control over enabled/disabling gestures. We don't expose a main kill switch to disable them all. Above matches the following sequence:

    val gesturesPlugin = mapView.getGesturesPlugin()
    gesturesPlugin.pitchEnabled = false
    gesturesPlugin.rotateEnabled = false
    gesturesPlugin.zoomEnabled = false
    gesturesPlugin.scrollEnabled = false
    // since this issue was created we have a couple more enabled properties   
    // and renamed a couple properties as well
  • tests
  • add API
  • add integration example in gestures activity
  • ~~serialisation spec?~~ -> needs discussion, maybe just as extension function
  • validate naming from OP with current state

pengdev avatar Jan 27 '21 13:01 pengdev

Is this still planned? I'd like to disable all user interaction with the Map, right now it's quite difficult to do. Thanks a lot!

Christophe668 avatar Oct 21 '21 13:10 Christophe668