mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 08:02:51 +02:00
Hide spiderfied markers on a big zoom. Fixes #268
This commit is contained in:
@@ -353,10 +353,9 @@ L.MarkerClusterGroup.include({
|
||||
|
||||
if (this._map.options.zoomAnimation) {
|
||||
this._map.on('zoomstart', this._unspiderfyZoomStart, this);
|
||||
} else {
|
||||
//Browsers without zoomAnimation don't fire zoomstart
|
||||
this._map.on('zoomend', this._unspiderfyWrapper, this);
|
||||
}
|
||||
//Browsers without zoomAnimation or a big zoom don't fire zoomstart
|
||||
this._map.on('zoomend', this._noanimationUnspiderfy, this);
|
||||
|
||||
if (L.Path.SVG && !L.Browser.touch) {
|
||||
this._map._initPathRoot();
|
||||
|
||||
Reference in New Issue
Block a user