From 9d3b0dd068e621046f3e0489484fc71ee5fe649c Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Fri, 3 Jul 2026 22:34:26 +0200 Subject: [PATCH] =?UTF-8?q?fix(figures):=20r=C3=A9activer=20l'animation=20?= =?UTF-8?q?du=20fitBounds=20sur=20les=20cartes=20organisme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit animate: False (ajouté pour contourner le point organisme surdimensionné, désormais résolu via un rendu en icône) empêchait apparemment la bibliothèque de clustering de recalculer correctement son arbre de clusters par niveau de zoom au montage, bloquant le declustering des contreparties jusqu'à un zoom complet suivi d'un dézoom. --- src/figures.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/figures.py b/src/figures.py index 855fec4..6c60b7d 100644 --- a/src/figures.py +++ b/src/figures.py @@ -616,11 +616,7 @@ def get_org_location_map( lats = [lat for lat, _ in all_points] lons = [lon for _, lon in all_points] map_kwargs["bounds"] = [[min(lats), min(lons)], [max(lats), max(lons)]] - map_kwargs["boundsOptions"] = { - "padding": [30, 30], - "maxZoom": 12, - "animate": False, - } + map_kwargs["boundsOptions"] = {"padding": [30, 30], "maxZoom": 12} else: map_kwargs["center"] = [46.6, 2.2] map_kwargs["zoom"] = 5