Skip to content
Permalink
Browse files

For internal layers, opacitiy has to be set after the style has been set

  • Loading branch information
mhugent authored and nyalldawson committed Apr 17, 2021
1 parent 903c309 commit fc3bb7cc0d70ecb1fa9b6f50a2b1f15218fa4cb8
Showing with 9 additions and 5 deletions.
  1. +9 −5 src/server/services/wms/qgswmsrenderer.cpp
@@ -3208,13 +3208,12 @@ namespace QgsWms
continue;
}

if ( mContext.testFlag( QgsWmsRenderContext::UseOpacity ) )
{
setLayerOpacity( layer, param.mOpacity );
}

if ( mContext.isExternalLayer( param.mNickname ) )
{
if ( mContext.testFlag( QgsWmsRenderContext::UseOpacity ) )
{
setLayerOpacity( layer, param.mOpacity );
}
continue;
}

@@ -3227,6 +3226,11 @@ namespace QgsWms
setLayerStyle( layer, mContext.style( *layer ) );
}

if ( mContext.testFlag( QgsWmsRenderContext::UseOpacity ) )
{
setLayerOpacity( layer, param.mOpacity );
}

if ( mContext.testFlag( QgsWmsRenderContext::UseFilter ) )
{
setLayerFilter( layer, param.mFilter );

0 comments on commit fc3bb7c

Please sign in to comment.