4

I was wondering if it is possible to change the marker in an overview while working on an atlas in print composer of QGIS. Could I change the shape of the marker to the actual form of the polygons in my coverage layer?

It would be neat to see the geometry in my overview map marked in whatever color I choose, instead of the little square frame that usually appears.

For example I would like the overview marker to be hexagonal as the geometry it is referring to, instead of square:enter image description here

Does anyone have an idea how to achieve this?

1 Answer 1

5

This can be achieved using a combination of Rule-based symbology and Map Themes.

  1. Duplicate your grid layer (as it looks like you already have done). One will be used for your main map, the other for your overview map.

  2. Set up your main grid symbology and create a map theme (mine is called 'grid'):

enter image description here

  1. Set up your overview symbology using rule-based symbology with two rules:

    1. $id = @atlas_featureid
    2. no filter (a blank expression)
  2. Create another theme for your overview layer ('overview'):

enter image description here

  1. In your layout, set your main map to the 'grid' theme and your Overview map to the 'overview' theme

enter image description here

Result:

As you change Atlas page, the symbology of your Overview map will change accordingly

enter image description here

Note:

You may have to enable symbol layers on your overview layer symbology to make sure the filtered 'overview' polygon appears on top of the unfiltered symbol layer:

enter image description here

enter image description here

3
  • 1
    Nice answer, like it!
    – Babel
    Commented Nov 23, 2022 at 21:38
  • Nice! Thats works perfectly, thank you so much :)
    – Jackie
    Commented Nov 25, 2022 at 14:17
  • @Jackie As a new user, please be adviced that this side tries to avoid "thank you" messages. Instead, it encourages you to accept the answer and/or upvote it: click the checkmark right to the answer to accept it - see: gis.stackexchange.com/help/someone-answers Just click the checkmark, see here: meta.stackexchange.com/questions/5234/…
    – Babel
    Commented Nov 25, 2022 at 14:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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