Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change to maplibre #27

Open
jixian01 opened this issue Aug 2, 2024 · 1 comment
Open

How to change to maplibre #27

jixian01 opened this issue Aug 2, 2024 · 1 comment

Comments

@jixian01
Copy link

jixian01 commented Aug 2, 2024

Description

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

Steps/Code to Reproduce

Expected Results

Actual Results

Versions

@JamesStratford
Copy link

JamesStratford commented Oct 3, 2024

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants