Skip to content

Commit 9ed7b0d

Browse files
committedJan 5, 2019
Consider case where id is layer name
1 parent e7c0f36 commit 9ed7b0d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/server/services/wms/qgswmsgetcapabilities.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,11 @@ namespace QgsWms
690690
if ( cLayer )
691691
{
692692
QString layerName = cLayer->shortName();
693-
if ( layerName.isEmpty() )
693+
if ( QgsServerProjectUtils::wmsUseLayerIds( *project ) )
694+
{
695+
layerName = cLayer->id();
696+
}
697+
else if ( layerName.isEmpty() )
694698
{
695699
layerName = cLayer->name();
696700
}

0 commit comments

Comments
 (0)
Please sign in to comment.