How can I make st.pydeck_chart use custom Mapbox styles?

If you are supplying a Mapbox token, but the resulting pydeck_chart doesn't show your custom Mapbox styles, set the token with the MAPBOX_API_KEY environment variable or PyDeck's api_keys argument (for example, pydeck.Deck(api_keys={"mapbox": YOUR_KEY})). Streamlit reads the Mapbox token from your pydeck.Deck object, which PyDeck sets from either of these sources. Please see this forum thread for more information.

forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.