Skip to content
Permalink
Browse files

[bugfix][server] WMS respect order of SLD grouped layers

  • Loading branch information
elpaso committed Feb 2, 2018
1 parent de33351 commit d7ef689c00fb8dd307ad70a8a8940764ec46ddc5
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/server/services/wms/qgswmsrenderer.cpp
@@ -2606,8 +2606,10 @@ namespace QgsWms
}
else if ( mLayerGroups.contains( lname ) )
{
for ( QgsMapLayer *layer : mLayerGroups[lname] )
// Reverse order for group members
for ( auto it = mLayerGroups[lname].rbegin(); it != mLayerGroups[lname].rend(); ++it )
{
QgsMapLayer *layer = *it;
if ( !mRestrictedLayers.contains( layerNickname( *layer ) ) )
{
layer->readSld( namedElem, err );
@@ -2664,6 +2666,7 @@ namespace QgsWms
}
else if ( mLayerGroups.contains( nickname ) )
{
// Reverse order for group members
for ( auto it = mLayerGroups[nickname].rbegin(); it != mLayerGroups[nickname].rend(); ++it )
{
QgsMapLayer *layer = *it;

0 comments on commit d7ef689

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