Skip to content

Commit

Permalink
Honour queryable field in layer info when bulding WMS getFeatureInfo …
Browse files Browse the repository at this point in the history
…request
  • Loading branch information
manisandro committed Oct 17, 2016
1 parent ffbaac9 commit 476dbfe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/client/utils/MapInfoUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 476dbfe

Please sign in to comment.