Skip to content

Commit

Permalink
WMS Server: display visibilityChecked property of a layer in GetProje…
Browse files Browse the repository at this point in the history
…ctSettings to allow client to correctly display the state of the layer tree
  • Loading branch information
mhugent committed Aug 17, 2020
1 parent 8aec98a commit 83db542
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/services/wms/qgswmsgetcapabilities.cpp
Expand Up @@ -913,6 +913,7 @@ namespace QgsWms
if ( projectSettings )
{
layerElem.setAttribute( QStringLiteral( "visible" ), treeNode->isVisible() );
layerElem.setAttribute( QStringLiteral( "visibilityChecked" ), treeNode->itemVisibilityChecked() );
layerElem.setAttribute( QStringLiteral( "expanded" ), treeNode->isExpanded() );
}

Expand Down

0 comments on commit 83db542

Please sign in to comment.