Hey I think it would be really cool to be able to show google earth KML’s in streamlit!
This would help with geospatial applications using streamlit.
Hey I think it would be really cool to be able to show google earth KML’s in streamlit!
This would help with geospatial applications using streamlit.
Hey @kurt-rhee, thanks for the suggestion! Is your request to display the KML like we do with dicts (so that you can inspect the file) or actually do some sort of plot?
Heya,
I peronsally would like to do some sort of plotting. I can do some plotting of geojson in plotly, but it seems to bug out when zooming out. I think being able to display KML with a google earth embedment would solve my problem. I wasn’t sure if it was a streamlit issue or a plotly issue so I created github issues on both libraries.
Thanks, filing an issue is definitely the first step
I didn’t put anything in there about google earth as an alternative, would you like me to?
That’s okay, Google Earth should probably stay separate from the bug report for Plotly.
You can try out the leafmap package. It supports any geopandas supported vector format, including KML. See notebook example: 10 add vector - leafmap
import leafmap
m = leafmap.Map()
in_kml = '../data/us-states.kml'
m.add_kml(in_kml, layer_name="KML")
m.to_streamlit()
Check out the leafmap web app.
https://share.streamlit.io/giswqs/leafmap-apps/app.py
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.
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.
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.
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.