Skip to content

Commit

Permalink
Map: Fix initial map bounding (#2042)
Browse files Browse the repository at this point in the history
  • Loading branch information
GziAzman authored Mar 21, 2024
1 parent 29d95d9 commit f6e38db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions front/src/routes/map/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class MapComponent extends Component {
})
})
.addTo(this.leafletMap);
this.markerArray.push(this.houseMarkers[house.id]);
}
});
}
Expand All @@ -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();

Expand Down

0 comments on commit f6e38db

Please sign in to comment.