Skip to content
Permalink
Browse files

Adding &TRANSPARENT=true makes too big legend images look good

See http://hub.qgis.org/issues/15089 for screenshots & test service url
  • Loading branch information
rduivenvoorde authored and m-kuhn committed Jun 26, 2016
1 parent 9bdfa67 commit c83c26acb70843ace2d985924890438a9dbf1266
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/providers/wms/qgswmsprovider.cpp
@@ -2972,6 +2972,9 @@ QUrl QgsWmsProvider::getLegendGraphicFullURL( double scale, const QgsRectangle&
setQueryItem( url, "LAYER", mSettings.mActiveSubLayers[0] );
if ( !qnames.contains( "STYLE" ) )
setQueryItem( url, "STYLE", mSettings.mActiveSubStyles[0] );
// by setting TRANSPARENT=true, even too big legend images will look good
if ( !qnames.contains( "TRANSPARENT" ) )
setQueryItem( url, "TRANSPARENT", "true" );

// add config parameter related to resolution
QSettings s;

0 comments on commit c83c26a

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