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

Source: https://docs.streamlit.io/knowledge-base/using-streamlit/pydeck-chart-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](https://discuss.streamlit.io/t/deprecation-warning-deckgl-pydeck-maps-to-require-mapbox-token-for-production-usage/2982/10) for more information.
