mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update build
This commit is contained in:
Vendored
+12
@@ -19,6 +19,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
spiderfyOnMaxZoom: true,
|
||||
showCoverageOnHover: true,
|
||||
zoomToBoundsOnClick: true,
|
||||
singleMarkerMode: false,
|
||||
|
||||
disableClusteringAtZoom: null
|
||||
},
|
||||
@@ -49,6 +50,17 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
return this;
|
||||
}
|
||||
|
||||
if (this.options.singleMarkerMode) {
|
||||
layer.options.icon = this.options.iconCreateFunction({
|
||||
getChildCount: function () {
|
||||
return 1;
|
||||
},
|
||||
getAllChildMarkers: function () {
|
||||
return [layer];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (!this._map) {
|
||||
this._needsClustering.push(layer);
|
||||
return this;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user