From b4933348033b1e0d63ae8fa79b6ba677bafaf2d2 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 1 Mar 2023 18:27:20 +0100 Subject: [PATCH] Exclude remoteLayer from import targets Those layers cannot contain data, as they use an URL to fetch it. --- umap/static/umap/js/umap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index d45991a3..b5d466a7 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -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;