Skip to content

Commit

Permalink
Adding &TRANSPARENT=true makes too big legend images look good
Browse files Browse the repository at this point in the history
See http://hub.qgis.org/issues/15089 for screenshots & test service url
  • Loading branch information
rduivenvoorde committed Jun 21, 2016
1 parent 543d521 commit f7c1506
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -3010,6 +3010,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;
Expand Down

0 comments on commit f7c1506

Please sign in to comment.