Wednesday 26 December 2018

Synchronizing views in QGIS print composer?


I found a question very similar to my problem: How to link dataframes in ArcGIS or QGIS?. But the solution for QGIS doesn't work now (Dual View plug-in is not available anymore).


I want to sync three views:


enter image description here


The idea is to move the three map views at the same time with a master map in QGIS print composer.


Is there a way or plug-in to do this?



Answer



Another elegant "no code" solution for the synchronization of composer maps uses the built-in "Overview" mechanism of QGIS:


enter image description here


Therefor we add a "Master Map Frame" overview to every map window, that should be synchronized with the master map. Then we set frame style to No Brush/ No Pen and enable "Center on overview".



To fix the scale of the child map, we enter an Expression value: enter image description here


That's all.


Very easy and very dynamic!


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...