Skip to content

How to change to maplibre #27

Open

Description

@jixian01

Description

Hey all, how could the basemap in deck.gl changed to maplibre? Thank you!

Steps/Code to Reproduce

Expected Results

Actual Results

Versions

Activity

  1. JamesStratford commented on Oct 3, 2024

    @JamesStratford

    Looking at the source

    dash-deck/src/lib/components/DeckGL.react.js

        // Only render static map if a mapbox token was given, else fallback to the maplibre backend
        let staticMap;
        if (mapboxKey !== null){
          staticMap = <Map
            mapboxAccessToken={mapboxKey}
            mapStyle={deckProps.mapStyle}
          />
        } else {
          staticMap = <MapLibre
              mapStyle={deckProps.mapStyle}
          />
        }

    MapLibre should be used when mapboxKey is None, but it doesn't seem to be working for me either

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions