Hello Streamlit! I am currently planning to build a dashboard (kinda waiting for the new st.beta_setpage_config to come out, especially for the "Dashboard"layout! im so excited about it!)
Anyways, im currently building a real-time dashboard that shares different layers of open data to the public (I will explain the whole project later)
But, I figured out that st.pydeck_chart does not support Terrain_layer for now,right? it might be wrong. But i just want to ask is it supported yet?
Based on your linked example, they pass in their Mapbox key inside the script like the following:
# Import Mapbox API Key from environment
MAPBOX_API_KEY = os.environ["MAPBOX_API_KEY"]
We wrote a brief note about custom Mapbox styles in our docs, but the quick summary is that you need to pass your Mapbox key via the Streamlit configuration file:
I just tried to set my "MAPBOX_API_KEY" in config.toml file.
besides of that, since I am coding on Pycharm, I set MAPBOX_API_KEY in my Environment Variables too.
But it is still not working on Terrain_layer while other layers are working fine, I will paste some âcontrolled testsâ below.
Would you be able to post your code, without your API key (it looks like SURFACE_IMAGE has it appended to it). If you can, I can take a look at it later, or maybe someone else in the community will have an idea.
Hi Randy, above is the code. the code works on jupyter notebook (just switch st.pydeck_chart into r.to_html().
I might be wrong since im so new to coding, but on Jan. 14th version 0.53.0 Streamlit announced that all pydeck layers were supported, but Terrain_layer was released by Deckgl on March 2020.
I think fundamentally, this is the same error as the others, where the key is specified in the Python script instead of in the config file. Additionally, I think weâre either not expecting the terrain layer (whether thatâs because it came out after we implemented this as you noted), or weâre not expecting a key in terrain layer value.
Either way, I will file this as an issue on GitHub, hopefully our engineers can resolve this quickly.
I tested Streamlit 0.66 which just released 3 hours ago, it did not work, but now we know whats the problems are, all I need to do is explore more about Streamlit while waiting for pros to setup improvement.
Sincerely thank you Randy and Streamlit Community!
Youâre welcome Kris! The pull request for updating the dependencies didnât make it into yesterdayâs 0.66 release, but I would expect it to get merged into the codebase within the next week, which would make it available in streamlit-nightly the next day.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking âAccept allâ, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.