mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Update the build
This commit is contained in:
Vendored
+19
-1
@@ -74,7 +74,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
onAdd: function (map) {
|
||||
L.FeatureGroup.prototype.onAdd.call(this, map);
|
||||
|
||||
this._generateInitialClusters();
|
||||
if (!this._topClusterLevel) {
|
||||
this._generateInitialClusters();
|
||||
}
|
||||
this._map.on('zoomend', this._zoomEnd, this);
|
||||
this._map.on('moveend', this._moveEnd, this);
|
||||
|
||||
@@ -85,6 +87,18 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
this._bindEvents();
|
||||
},
|
||||
|
||||
//Overrides FeatureGroup.onRemove
|
||||
onRemove: function (map) {
|
||||
this._map.off('zoomend', this._zoomEnd, this);
|
||||
this._map.off('moveend', this._moveEnd, this);
|
||||
|
||||
if (this._spiderfierOnRemove) { //TODO FIXME: Not sure how to have spiderfier add something on here nicely
|
||||
this._spiderfierOnRemove();
|
||||
}
|
||||
|
||||
L.FeatureGroup.prototype.onRemove.call(this, map);
|
||||
},
|
||||
|
||||
//Overrides FeatureGroup._propagateEvent
|
||||
_propagateEvent: function (e) {
|
||||
if (e.target instanceof L.MarkerCluster) {
|
||||
@@ -1383,6 +1397,10 @@ L.MarkerClusterGroup.include({
|
||||
}
|
||||
},
|
||||
|
||||
_spiderfierOnRemove: function () {
|
||||
this._map.off('click zoomstart', this._unspiderfy, this);
|
||||
},
|
||||
|
||||
_unspiderfy: function () {
|
||||
if (this._spiderfied) {
|
||||
this._spiderfied.unspiderfy();
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user