Skip to content

Expose MapLibre compass and scale bar #5295

Open

Description

@nicolaskruchten

We should expose attributes to turn on the north arrow and scale bar in Mapbox subplots: https://docs.mapbox.com/mapbox-gl-js/api/markers/#navigationcontrol and https://docs.mapbox.com/mapbox-gl-js/api/markers/#scalecontrol ... seems similar to when we added attribution ?

cc @alexcjohnson

Activity

  1. avolny commented on Jun 6, 2023

    @avolny

    Hello, are there any forseeable plans on adding this? 🙏

  2. self-assigned this
    on Jul 5, 2024
  3. removed their assignment
    on Aug 2, 2024
  4. changed the title [-]Mapbox North Arrow and Scale Bar[/-] [+]expose Mapbox North Arrow and Scale Bar[/+] on Aug 9, 2024
  5. emilykl commented on Aug 28, 2026

    @emilykl
    Contributor

    Note: plotly.js now uses MapLibre rather than Mapbox, but it seems the same features are available in MapLibre:

    https://maplibre.org/maplibre-gl-js/docs/API/classes/NavigationControl/

    https://maplibre.org/maplibre-gl-js/docs/API/classes/ScaleControl/

    Would be cool to expose these.

  6. changed the title [-]expose Mapbox North Arrow and Scale Bar[/-] [+]expose MapLibre compass and scale bar[/+] on Aug 28, 2026
  7. changed the title [-]expose MapLibre compass and scale bar[/-] [+]Expose MapLibre compass and scale bar[/+] on Aug 28, 2026
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

    P3backlogfeaturesomething new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions