Fix layer control error when switching servers

This commit is contained in:
James Lyne 2021-08-31 15:55:39 +01:00
parent a82052714d
commit f1d38e7485

View File

@ -222,4 +222,10 @@ export class LiveAtlasLayerControl extends Control.Layers {
Layers.prototype._checkDisabledLayers.call(this);
return label;
}
onRemove(map: LeafletMap) {
this._layerControlInputs = [];
(super.onRemove as Function)(map);
}
}