Skip to content

Commit

Permalink
Add project context for map rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Apr 12, 2018
1 parent 39a1fab commit d9fbca5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -1125,6 +1125,9 @@ namespace QgsWms
{
mapSettings.setBackgroundColor( backgroundColor );
}

// add context from project (global variables, ...)
mapSettings.setExpressionContext( mProject->createExpressionContext() );
}

QDomDocument QgsRenderer::featureInfoDocument( QList<QgsMapLayer *> &layers, const QgsMapSettings &mapSettings,
Expand Down

0 comments on commit d9fbca5

Please sign in to comment.