Skip to content

Location button always shown on web #362

Closed

Description

@Ionys320

Hello,
It would be nice to have the possibility of removing the controls buttons on the map !

Thanks a lot for your work

Activity

  1. m0nac0 commented on Jul 19, 2020

    @m0nac0
    Collaborator

    @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.

  2. Ionys320 commented on Jul 19, 2020

    @Ionys320
    Author

    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.

  3. added
    bug
    on Jul 20, 2020
  4. changed the title [-]Remove the controls of the map[/-] [+]Location button always shown on web[/+] on Jul 20, 2020
  5. m0nac0 commented on Jul 20, 2020

    @m0nac0
    Collaborator

    @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.

  6. Ionys320 commented on Jul 20, 2020

    @Ionys320
    Author

    Hello, thank you for your reactivity and for your solution 👌 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugweb

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions