folium
folium copied to clipboard
Python Data. Leaflet.js Maps.
This PR is based on a discussion in #1942. In that issue, the user wanted to load `JsCode` objects from a javascript file, instead of embedding javascript code as strings...
During an earlier change, I noted that many `MacroElement` subclasses do not fully use the templating facilities of their parent class. This PR makes the code more internally consistent by...
Fixes https://github.com/python-visualization/folium/issues/2084, which is an issue introduced by https://github.com/python-visualization/folium/pull/2068. We shouldn't have removed `self.icon` in `Marker`. It's not directly visible where it is used, so I added a comment to...
GeoPandas CI is failing with Folium main due to the icon passed to the marker no longer being used. ```py import folium fc = {'type': 'FeatureCollection', 'features': [{'id': '0', 'type':...
Use playwright and an example streamlit app for testing Folium maps.
We currently use Selenium to test the examples in our documentation for errors. This is useful, but it doesn't catch features silently failing. This happened in our v0.19.0 release. **We...
**Describe the bug** Adding multiple `FeatureGroup`s to a `LayerControl` where some are named using a numerical string causes those groups to always come first in the layer control on the...
I have a non-expected result when using this code (the raster used is attached to this message): ```python raster_path = '2019-06-15.tiff' with rasterio.open(raster_path) as src: raster_data = src.read(1) bounds =...
**Describe the bug** When using FeatureGroupSubGroup and setting the marker to a CustomIcon, the layer isn't generated; it also wipes any customization from other markers added prior to the FeatureGroupSubGroup,...
See https://github.com/python-visualization/folium/pull/2034. We pinned the Selenium version for now to make sure the tests pass. In a bit, see how that situation around getAttribute resolved and try to fix/update the...