Skip to content
Permalink
Browse files

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

  • Loading branch information
mhugent committed Mar 12, 2021
1 parent 6a9455c commit 3f8c8e2dc0170931e1423d7aae9f776aab3688b6
Showing with 9 additions and 5 deletions.
  1. +9 −5 src/server/services/wms/qgswmsrenderer.cpp
@@ -3285,13 +3285,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;
}

@@ -3304,6 +3303,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 3f8c8e2

Please sign in to comment.