From e6563351aa499d8cd618ab038967eeeb0d0155bd Mon Sep 17 00:00:00 2001 From: jokd Date: Mon, 11 Sep 2023 10:57:52 +0200 Subject: [PATCH] Update multiselect.js --- src/multiselect.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/multiselect.js b/src/multiselect.js index 5a4bb26..9f28d8a 100644 --- a/src/multiselect.js +++ b/src/multiselect.js @@ -500,7 +500,7 @@ const Multiselect = function Multiselect(options = {}) { layers = currentLayerConfig.layers.map(l => viewer.getLayer(l)); } else { // Use queryable layers when no config exists (default behaviour) - layers = viewer.getQueryableLayers(); + layers = viewer.getQueryableLayers(true); } // This call populates the promises array, so on the next line we can await it @@ -712,7 +712,7 @@ const Multiselect = function Multiselect(options = {}) { // Featureinfo in two steps. Concat serverside and clientside when serverside is finished const pixel = evt.pixel; const coordinate = evt.coordinate; - const layers = viewer.getQueryableLayers(); + const layers = viewer.getQueryableLayers(true); const clientResult = Origo.getFeatureInfo.getFeaturesAtPixel({ coordinate, map, @@ -791,7 +791,7 @@ const Multiselect = function Multiselect(options = {}) { // Featurinfo in two steps. Concat serverside and clientside when serverside is finished const pixel = evt.pixel; const coordinate = evt.coordinate; - const layers = viewer.getQueryableLayers(); + const layers = viewer.getQueryableLayers(true); const clientResult = Origo.getFeatureInfo.getFeaturesAtPixel({ coordinate, map,