Skip to content
Permalink
Browse files

Add QUERY_LAYERS to available layers in GetFeatureInfo request

  • Loading branch information
pblottiere committed Oct 27, 2017
1 parent c54299d commit 2498b52811b3c09abc86fa888d20c553c8848f80
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/server/services/wms/qgswmsrenderer.cpp
@@ -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() );

0 comments on commit 2498b52

Please sign in to comment.
You can’t perform that action at this time.