I have in QGIS v3.22 two layers:

  • polygon hex layer
  • points layer

I want to create a dynamic view when the points intersect on the polygon layer and fill the polygon content with some color and disappear or make opaque the hexagons with which the points do not intersect. This dynamic view must be generated in polygon layer Geometry Generator, probaly with overlay_intersects expression.

enter image description here

1 Answer 1


Create a rule based symbology for your Grid/Polygonlayer and create two rules. One with the expression overlay_intersects('nameofpointlayer') and another one with ELSE:

enter image description here


enter image description here

  • No need to go under "rule-based". You can also go in "categorized" and put overlay_intersects('point layer'). So that you'll have a true/false.
    – katagena
    Sep 10, 2022 at 17:08

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.