mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Utilize option to clusterSingleMarkers
This commit is contained in:
@@ -327,7 +327,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
|
||||
// any clusters that did not end up being a child of a new cluster, make them a child of a new cluster
|
||||
unclustered.eachObject(function (cluster) {
|
||||
if (cluster instanceof L.MarkerCluster) {
|
||||
if (cluster instanceof L.MarkerCluster || (group.options.clusterSingleMarkers && cluster instanceof L.Marker)) {
|
||||
newCluster = new L.MarkerCluster(group, cluster);
|
||||
newCluster._haveGeneratedChildClusters = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user