Skip to content
Permalink
Browse files

Merge pull request #3226 from rduivenvoorde/legendsizefix

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

fix #15089
  • Loading branch information
rduivenvoorde committed Jun 24, 2016
2 parents 66c47d7 + f7c1506 commit c6e0ad36e8372c20ba49dd31ee36b3cb815d8961
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/providers/wms/qgswmsprovider.cpp
@@ -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;

0 comments on commit c6e0ad3

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