Exclude remoteLayer from import targets
Those layers cannot contain data, as they use an URL to fetch it.
This commit is contained in:
parent
ae6f9fda57
commit
b493334803
1 changed files with 1 additions and 1 deletions
|
@ -777,7 +777,7 @@ L.U.Map.include({
|
||||||
clearFlag.type = 'checkbox';
|
clearFlag.type = 'checkbox';
|
||||||
clearFlag.name = 'clear';
|
clearFlag.name = 'clear';
|
||||||
this.eachDataLayerReverse(function (datalayer) {
|
this.eachDataLayerReverse(function (datalayer) {
|
||||||
if (datalayer.isLoaded()) {
|
if (datalayer.isLoaded() && !datalayer.isRemoteLayer()) {
|
||||||
var id = L.stamp(datalayer);
|
var id = L.stamp(datalayer);
|
||||||
option = L.DomUtil.create('option', '', layerInput);
|
option = L.DomUtil.create('option', '', layerInput);
|
||||||
option.value = id;
|
option.value = id;
|
||||||
|
|
Loading…
Reference in a new issue