I have an app with a map that uses a mapbox layer. It was running fine until a few days ago. Now, the mapbox layer is not shown with a warning: NO_TOKEN_WARNING
I have a mapbox token. Usage is within the free tier limits.
I have the token in my config.toml:
# config.toml token = "##########################################################"
I’m running streamlit specifying the token:
run ~/python-projects/booking-streamlit/app.py --mapbox.token abc#########################abc
My streamlit version is streamlit-0.73.1 running on conda on server, but same issue is on localhost
The code for generating the layer:
# app.py
deck0 = pdk.Deck(
map_style='mapbox://styles/mapbox/light-v9',
# see https://docs.mapbox.com/api/maps/#mapbox-styles
initial_view_state=initial_view_state,
tooltip={
'html': 'Price: € {price} <br />{stars} <br /> rating: {hscore}/10',
'style': {
'color': 'white'
}
},
layers=[layer1]
)
Any help will be greatly appreciated. Thanks & Merry Christmas !
EDIT: solved, see my comment below