You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Ionys320 Which controls would you like to disable? You can disable the compass with compassEnabled:false and the my location button/layer with myLocationEnabled:false in the MapboxMap constructor.
Hello,
When using the plugin with a web app, the location's button is enabled even with myLocationEnabled: false. But it must be a problem and not a feature to add, you're right.
@Ionys320 Thank you for reporting it, I've been able to reproduce it and have opened a PR to fix it.
As a workaround, you can enable myLocationEnabled and disable it again at runtime to hide the button.
Activity
m0nac0 commentedon Jul 19, 2020
@Ionys320 Which controls would you like to disable? You can disable the compass with
compassEnabled:falseand the my location button/layer withmyLocationEnabled:falsein the MapboxMap constructor.Ionys320 commentedon Jul 19, 2020
Hello,
When using the plugin with a web app, the location's button is enabled even with myLocationEnabled: false. But it must be a problem and not a feature to add, you're right.
[-]Remove the controls of the map[/-][+]Location button always shown on web[/+]m0nac0 commentedon Jul 20, 2020
@Ionys320 Thank you for reporting it, I've been able to reproduce it and have opened a PR to fix it.
As a workaround, you can enable
myLocationEnabledand disable it again at runtime to hide the button.Ionys320 commentedon Jul 20, 2020
Hello, thank you for your reactivity and for your solution 👌 !