Skip to content

Commit f7c1506

Browse files
committedJun 21, 2016
Adding &TRANSPARENT=true makes too big legend images look good
See http://hub.qgis.org/issues/15089 for screenshots & test service url
1 parent 543d521 commit f7c1506

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/providers/wms/qgswmsprovider.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3010,6 +3010,9 @@ QUrl QgsWmsProvider::getLegendGraphicFullURL( double scale, const QgsRectangle&
30103010
setQueryItem( url, "LAYER", mSettings.mActiveSubLayers[0] );
30113011
if ( !qnames.contains( "STYLE" ) )
30123012
setQueryItem( url, "STYLE", mSettings.mActiveSubStyles[0] );
3013+
// by setting TRANSPARENT=true, even too big legend images will look good
3014+
if ( !qnames.contains( "TRANSPARENT" ) )
3015+
setQueryItem( url, "TRANSPARENT", "true" );
30133016

30143017
// add config parameter related to resolution
30153018
QSettings s;

0 commit comments

Comments
 (0)
Please sign in to comment.