mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Don't re-spiderfy if the same cluster is clicked twice
This commit is contained in:
@@ -15,8 +15,11 @@ L.MarkerCluster.include({
|
||||
// 0 -> always spiral; Infinity -> always circle
|
||||
|
||||
spiderfy: function () {
|
||||
var me = this,
|
||||
childMarkers = this.getAllChildMarkers(),
|
||||
if (this._group._spiderfied == this) {
|
||||
return;
|
||||
}
|
||||
|
||||
var childMarkers = this.getAllChildMarkers(),
|
||||
group = this._group,
|
||||
map = group._map,
|
||||
center = map.latLngToLayerPoint(this._latlng),
|
||||
|
||||
Reference in New Issue
Block a user