mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
Support adding markers while we aren't on the map.
This commit is contained in:
@@ -93,7 +93,13 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
|
|
||||||
if (!this._topClusterLevel) {
|
if (!this._topClusterLevel) {
|
||||||
this._generateInitialClusters();
|
this._generateInitialClusters();
|
||||||
|
} else if (this._needsClustering.length > 0) {
|
||||||
|
for (var i = this._needsClustering.length - 1; i >= 0; i--) {
|
||||||
|
this.addLayer(this._needsClustering[i]);
|
||||||
}
|
}
|
||||||
|
this._needsClustering = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
this._map.on('zoomend', this._zoomEnd, this);
|
this._map.on('zoomend', this._zoomEnd, this);
|
||||||
this._map.on('moveend', this._moveEnd, this);
|
this._map.on('moveend', this._moveEnd, this);
|
||||||
|
|||||||
Reference in New Issue
Block a user