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,