How to link the extent and rotation of each map window to the sheet-sections? I asume the atlas function does not apply in this scenario?



  • i might add, that two mapwindows are displayed on one sheet in the layout.
    – Marek
    Jan 24 at 16:47
  • 1
    Sorry, not clear what you want to do. Can you provide a bit more information?
    – Babel
    Jan 24 at 16:55
  • I have a sheet-section-layer 'Blattschnitt', with a certain extension and rotation for each polygone, that has his own attributes, like the name 'Blatt_1' and 'Blatt__2" and even calculated rotation. Now, in the layout, i would like the seperate mapwindows (the upper and the lower one) to be controlled by the geometries of the single polygones (Blatt 1 and Blatt 2) from the layer 'Blattschnitte' hope my translation was clearer now and thank you for the help!
    – Marek
    Jan 24 at 20:18

1 Answer 1


If you want item Map2 to follow the extent/rotation of item Map1

Set the Map2 properties to custom variables like:

Rotation: map_get( item_variables('Map 1'),'map_rotation')

X_min: x_min(map_get( item_variables('Map 1'),'map_extent'))

Y_min: y_min(map_get( item_variables('Map 1'),'map_extent'))

X_max: x_max(map_get( item_variables('Map 1'),'map_extent'))

Y_max: y_max(map_get( item_variables('Map 1'),'map_extent'))

enter image description here

Changes to Map1 will automatically be reflected on Map2 enter image description here

You can use a similar approach with updated formulas to compute a specific frame for Map2 based on Map1

  • Hello Kasper, thank you for the great explenation. I am not sure if it is what i wanted... I have a layer 'Blattschnitte' with two polygons defining the extent and rotation of the area of interrest... but devided into two sections. I would like the upper mapwindow to be controled by 'Blatt 1' of the 'Blattschnitte'-Layer and the lower one by 'Blatt 2'.
    – Marek
    Jan 24 at 20:23
  • Ok, will look at it tomorrow, but it should be easy if you want to dig into it to retrieve the geometry from Blatt1 & 2 and use these polygons as references in the Map1 & 2 extents
    – Kasper
    Jan 24 at 21:05
  • that would be fantastic! Thank you :)
    – Marek
    Jan 25 at 16:07
  • Not as straightforward than I thought. Will keep pushing but not sure to find out. You might want to clarify the question & title to possibly get other answers
    – Kasper
    Jan 25 at 18:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.