Closed cboettig closed 5 months ago
I'm not quite following @cboettig...this code originates in leafmap, which isn't our package. Not sure how we could be "breaking" something they are doing?
Ah, I see what they are doing.
Are you on the latest version of streamlit-folium? We made a change recently that is supposed to better import all needed JS, maybe that fixes this? I'm running your example locally, it looks like it works to me.
Amazing! Yup, updated my libraries and things are working great. Thanks for this amazing package!
(here's a little demo streamlit app illustrating your bidirectional support to explore carbon stocks and carbon lost https://huggingface.co/spaces/boettiger-lab/leafmap)
Woo hoo!
I'm using the leafmap package to create a bidirectional streamlit-folium application, which for the most part is very nice and easy. However, I have noticed that while folium continues to render COGs or geojson just fine, vector tiles fail to render. I reported this in leafmap, but we're having trouble tracking down the issue precisely, it looks like the problem originates in streamlit-folium.
Here's a relatively minimal example. When
bidirectional = True
, we get the bidirectional output from the draw tools, but the vector tiles layers (tribal areas polygons) no longer render. With bidirectional turned off the vector tile layer renders quickly, but of course the app no longer has bidirectional interactions.