Exclude remoteLayer from import targets

Those layers cannot contain data, as they use an URL to fetch it.
This commit is contained in:
Yohan Boniface 2023-03-01 18:27:20 +01:00
parent ae6f9fda57
commit b493334803

View file

@ -777,7 +777,7 @@ L.U.Map.include({
clearFlag.type = 'checkbox';
clearFlag.name = 'clear';
this.eachDataLayerReverse(function (datalayer) {
if (datalayer.isLoaded()) {
if (datalayer.isLoaded() && !datalayer.isRemoteLayer()) {
var id = L.stamp(datalayer);
option = L.DomUtil.create('option', '', layerInput);
option.value = id;