Skip to content

Commit

Permalink
Merge pull request #224 from bettersg/bugfix/208-marker-issues
Browse files Browse the repository at this point in the history
208 - Clusters do not open on highest zoom
  • Loading branch information
neozhixuan authored Dec 23, 2023
2 parents d284e66 + a85be63 commit 052cc5c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/components/map/Marker/ClusterGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ const CreateMarkerClusterGroup = (

const markerClusterGroup = new L.MarkerClusterGroup({
// When to disable clusters
disableClusteringAtZoom: 25,
// Not too sure what this does
disableClusteringAtZoom: 18,
// Distance between spiderfied markers
spiderfyDistanceMultiplier: 3,
zoomToBoundsOnClick: true,
showCoverageOnHover: true,
animate: true,
chunkedLoading: true,
iconCreateFunction: (cluster) =>
divIcon({
source: (
Expand Down

0 comments on commit 052cc5c

Please sign in to comment.