File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,16 @@ QStringList QgsServerProjectUtils::owsServiceKeywords( const QgsProject &project
65
65
66
66
QString QgsServerProjectUtils::owsServiceOnlineResource ( const QgsProject &project )
67
67
{
68
- return project.readEntry ( QStringLiteral ( " WMSOnlineResource" ), QStringLiteral ( " /" ) );
68
+ QString wmsOnlineResource = project.readEntry ( QStringLiteral ( " WMSOnlineResource" ), QStringLiteral ( " /" ) );
69
+
70
+ QgsProperty wmsOnlineResourceExpression = project.readPropertyEntry ( QStringLiteral ( " WMSOnlineResource" ), QStringLiteral ( " /" ) );
71
+ if ( wmsOnlineResourceExpression.isActive () && ! wmsOnlineResourceExpression.expressionString ().isEmpty () )
72
+ {
73
+ QgsExpressionContext context;
74
+ return wmsOnlineResourceExpression.valueAsString ( context, wmsOnlineResource );
75
+ }
76
+
77
+ return wmsOnlineResource;
69
78
}
70
79
71
80
QString QgsServerProjectUtils::owsServiceContactOrganization ( const QgsProject &project )
You can’t perform that action at this time.
0 commit comments