mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Update build
This commit is contained in:
Vendored
+14
@@ -237,6 +237,20 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
return bounds;
|
||||
},
|
||||
|
||||
//Don't override LayerGroup.eachLayer, but provide the same functionality for external users
|
||||
eachChildLayer: function (method, context) {
|
||||
var markers = this._needsClustering.slice(),
|
||||
i;
|
||||
|
||||
if (this._topClusterLevel) {
|
||||
this._topClusterLevel.getAllChildMarkers(markers);
|
||||
}
|
||||
|
||||
for (i = markers.length - 1; i >= 0; i--) {
|
||||
method.call(context, markers[i]);
|
||||
}
|
||||
},
|
||||
|
||||
//Returns true if the given layer is in this MarkerClusterGroup
|
||||
hasLayer: function (layer) {
|
||||
if (this._needsClustering.length > 0) {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user