Skip to content

Commit 43512d5

Browse files
committed
[quick] Improve map settings flags for canvas
- labeling engine settings from project were not being applied - enable simplification of geometries (faster map rendering) - enable partial map updates when incremental rendering is enabled (to be able to see how wmts/xyz tiles are being loaded)
1 parent 6fab904 commit 43512d5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/quickgui/qgsquickmapcanvasmap.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,17 @@ void QgsQuickMapCanvasMap::refreshMap()
102102
if ( project )
103103
{
104104
expressionContext << QgsExpressionContextUtils::projectScope( project );
105+
106+
mapSettings.setLabelingEngineSettings( project->labelingEngineSettings() );
105107
}
106108

107109
mapSettings.setExpressionContext( expressionContext );
108110

111+
// enables on-the-fly simplification of geometries to spend less time rendering
112+
mapSettings.setFlag( QgsMapSettings::UseRenderingOptimization );
113+
// with incremental rendering - enables updates of partially rendered layers (good for WMTS, XYZ layers)
114+
mapSettings.setFlag( QgsMapSettings::RenderPartialOutput, mIncrementalRendering );
115+
109116
// create the renderer job
110117
Q_ASSERT( !mJob );
111118
mJob = new QgsMapRendererParallelJob( mapSettings );

0 commit comments

Comments
 (0)