Skip to content

Commit

Permalink
Use clustering for more than one point
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Ory committed Feb 6, 2025
1 parent 0eaacd0 commit ea8ee9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts-local.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
});

// Only cluster if there are more than 20 markers
if (markers.length <= 10) {
if (markers.length <= 1) {
return L.divIcon({ html: '', className: 'hidden-cluster', iconSize: L.point(0, 0) });
}

Expand Down

0 comments on commit ea8ee9f

Please sign in to comment.