When creating an atlas in QGIS, is it possible to filter map feature visibility based on the coverage layer?
What I want:
Using the image below, I want to hide the orange polygons and display only the polygons that are either intersected by the black 'coverage layer' feature or whose ID is in the coverage layer's attribute ID_LIST. The ID_LIST is a string of comma-separated numbers with no spaces.
What I have tried:
Using rule-based visible/else hide styling, for the 'visible' filter I've tried the following rules:
array_contains(string_to_array(attribute(@atlas_feature, 'ID_LIST' )),to_string("ID"))
The above did not work.
array_find(aggregate(layer:='MULTICOLORED_POLY', aggregate:= 'array_agg', expression:=ID, filter:=intersects( @atlas_geometry , $geometry)),"ID")
This one rendered all features.