Skip to content
Permalink
Browse files

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

Fixes #17975 - QGIS server 2.99 reverses the layer order for layer groups
  • Loading branch information
elpaso committed Feb 2, 2018
1 parent e65c16b commit de33351ff89f18624900a50196bb3214626b40a6
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/server/services/wms/qgswmsrenderer.cpp
@@ -2664,8 +2664,9 @@ namespace QgsWms
}
else if ( mLayerGroups.contains( nickname ) )
{
for ( QgsMapLayer *layer : mLayerGroups[nickname] )
for ( auto it = mLayerGroups[nickname].rbegin(); it != mLayerGroups[nickname].rend(); ++it )
{
QgsMapLayer *layer = *it;
if ( !mRestrictedLayers.contains( layerNickname( *layer ) ) )
{
if ( !style.isEmpty() )

0 comments on commit de33351

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