diff --git a/scripts/map.py b/scripts/map.py index 4bc704b7..ee472f14 100644 --- a/scripts/map.py +++ b/scripts/map.py @@ -183,8 +183,102 @@ def render(value): popup=folium.GeoJsonPopup(fields=["popup_html"], labels=False, parse_html=True), ).add_to(m) + # Add reset zoom control using a direct approach + # This script will be added at the end and executed immediately + reset_control_script = folium.Element(""" + + """) + + m.get_root().html.add_child(reset_control_script) + # Save map_path = "assets/map.html" m.save(map_path) logging.info(f"Map saved as {map_path}") + + +if __name__ == "__main__": + logging.basicConfig(level=logging.INFO) + generate_map()