From f6e38db84bd4bd092cc11b76aba51050e60ba78a Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 21 Mar 2024 11:22:33 +0100 Subject: [PATCH] Map: Fix initial map bounding (#2042) --- front/src/routes/map/Map.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/front/src/routes/map/Map.jsx b/front/src/routes/map/Map.jsx index d607296c96..4322ed8fde 100644 --- a/front/src/routes/map/Map.jsx +++ b/front/src/routes/map/Map.jsx @@ -76,6 +76,7 @@ class MapComponent extends Component { }) }) .addTo(this.leafletMap); + this.markerArray.push(this.houseMarkers[house.id]); } }); } @@ -95,6 +96,7 @@ class MapComponent extends Component { fillOpacity: 0.2 }) .addTo(this.leafletMap); + this.markerArray.push(this.areaMarkers[area.id]); this.areaMarkers[area.id].bindTooltip(area.name).openTooltip();