Fix layer control error when switching servers
This commit is contained in:
parent
a82052714d
commit
f1d38e7485
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user