mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update Build
This commit is contained in:
10
dist/leaflet.markercluster-src.js
vendored
10
dist/leaflet.markercluster-src.js
vendored
@@ -131,6 +131,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
|
||||
//Overrides FeatureGroup.onRemove
|
||||
onRemove: function (map) {
|
||||
console.log('MCG.onRemove');
|
||||
this._map.off('zoomend', this._zoomEnd, this);
|
||||
this._map.off('moveend', this._moveEnd, this);
|
||||
|
||||
@@ -229,7 +230,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
},
|
||||
|
||||
_zoomEnd: function () {
|
||||
|
||||
if (!this._map) { //May have been removed from the map by a zoomEnd handler
|
||||
return;
|
||||
}
|
||||
this._mergeSplitClusters();
|
||||
|
||||
this._zoom = this._map._zoom;
|
||||
@@ -1628,12 +1631,17 @@ L.MarkerClusterGroup.include({
|
||||
_spiderfierOnRemove: function () {
|
||||
this._map.off('click', this._unspiderfyWrapper, this);
|
||||
this._map.off('zoomstart', this._unspiderfyZoomStart, this);
|
||||
this._map.off('zoomanim', this._unspiderfyZoomAnim, this);
|
||||
},
|
||||
|
||||
|
||||
//On zoom start we add a zoomanim handler so that we are guaranteed to be last (after markers are animated)
|
||||
//This means we can define the animation they do rather than Markers doing an animation to their actual location
|
||||
_unspiderfyZoomStart: function () {
|
||||
if (!this._map) { //May have been removed from the map by a zoomEnd handler
|
||||
return;
|
||||
}
|
||||
|
||||
this._map.on('zoomanim', this._unspiderfyZoomAnim, this);
|
||||
},
|
||||
_unspiderfyZoomAnim: function (zoomDetails) {
|
||||
|
||||
2
dist/leaflet.markercluster.js
vendored
2
dist/leaflet.markercluster.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user