Skip to content

Commit ea8ee9f

Browse files
author
Benjamin Ory
committed
Use clustering for more than one point
1 parent 0eaacd0 commit ea8ee9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts-local.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
});
236236

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

0 commit comments

Comments
 (0)