Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDisable compass interactivity for `interactive: false` maps #8618
Comments
This comment has been minimized.
This comment has been minimized.
I'm unclear about what this issue is requesting.
This is the current behavior.
Agree, preserving compass functionality despite |
This comment has been minimized.
This comment has been minimized.
Don't think so. Currently it is possible for the user to interupt/alter the animation via the compass icon (gif from the demonstration linked above):
Show the compass while animating the camera and this animation cannot be interrupted/altered by the user. Hope it is clearer now. |
This comment has been minimized.
This comment has been minimized.
It's still fairly confusing, but if this is solely about removing compass interactivity when map is |
This comment has been minimized.
This comment has been minimized.
Per chat with several other developers, this could be desirable. Reopening |
pathmapper commentedAug 10, 2019
•
edited
mapbox-gl-js version: v1.2.1
browser: Chrome/Firefox, likely any
Steps to Trigger Behavior
https://docs.mapbox.com/mapbox-gl-js/example/animate-camera-around-point/ with
interactive: false
andLink to Demonstration
https://jsbin.com/yatuvegeti/1/edit?html,output
Expected Behavior
It's not possible for the user to interrupt/alter the animation. Also the compass tooltip Reset bearing to north should not be displayed.
Actual Behavior
It's possible to rotate / tilt the map dragging the compass icon and the tooltip is displayed.
One could argue that this is not a bug, because the compass is a navigation control. In this case it would be appreciated if this issue would be considered as feature request. It would be useful to be able to use the compass for indicating bearing/pitch while animating the camera and the user is not able to interrupt/alter the animation.