randyzwitch / streamlit-folium

Streamlit Component for rendering Folium maps
https://folium.streamlit.app/
MIT License
468 stars 176 forks source link

Make rendering optional #197

Closed this-josh closed 3 months ago

this-josh commented 3 months ago

Permits caching of the rendering which for scenarios where the same maps are shown can increase performance

closes #194

randyzwitch commented 3 months ago

Seems pretty straightforward 😂

Is there a way we can add a test for this?

this-josh commented 3 months ago

I had a think about that, it's a bit weird as the current change would affect coverage?

If you don't call render then when you go to show your map the shapes/lines you've shown don't get drawn. I'm not sure if we could test based on that?