Skip to content

Commit

Permalink
Add QUERY_LAYERS to available layers in GetFeatureInfo request
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Oct 27, 2017
1 parent c54299d commit 2498b52
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -956,6 +956,16 @@ namespace QgsWms
else
layers = stylizedLayers( params );

// add QUERY_LAYERS to list of available layers for more flexibility
for ( const QString &queryLayer : queryLayers )
{
if ( mNicknameLayers.contains( queryLayer )
&& !layers.contains( mNicknameLayers[queryLayer] ) )
{
layers.append( mNicknameLayers[queryLayer] );
}
}

// create the mapSettings and the output image
QgsMapSettings mapSettings;
std::unique_ptr<QImage> outputImage( createImage() );
Expand Down

0 comments on commit 2498b52

Please sign in to comment.