diff --git a/web/client/utils/MapInfoUtils.js b/web/client/utils/MapInfoUtils.js index b522b6f6f13..a491d86410a 100644 --- a/web/client/utils/MapInfoUtils.js +++ b/web/client/utils/MapInfoUtils.js @@ -152,12 +152,16 @@ const MapInfoUtils = { const center = {x: lngCorrected, y: props.point.latlng.lat}; let centerProjected = CoordinatesUtils.reproject(center, 'EPSG:4326', props.map.projection); let bounds = MapInfoUtils.getProjectedBBox(centerProjected, resolution, rotation, size, null); + let queryLayers = layer.name; + if (layer.queryable) { + queryLayers = layer.queryable.join(","); + } return { request: { id: layer.id, layers: layer.name, - query_layers: layer.name, + query_layers: queryLayers, styles: layer.style, x: ((widthBBox % 2) === 1) ? Math.ceil(widthBBox / 2) : widthBBox / 2, y: ((widthBBox % 2) === 1) ? Math.ceil(widthBBox / 2) : widthBBox / 2,