dash-deck icon indicating copy to clipboard operation
dash-deck copied to clipboard

How to change to maplibre

Open jixian01 opened this issue 1 year ago • 1 comments

Description

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

Steps/Code to Reproduce

Expected Results

Actual Results

Versions

jixian01 avatar Aug 02 '24 13:08 jixian01

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

JamesStratford avatar Oct 03 '24 06:10 JamesStratford