Is it possible to set the extent of each page in a QGIS atlas to the bounding box extent of the visible features in a second (non-coverage) layer?
In my case, the SCHOOLS layer is the coverage layer, which I believe the variable @atlas_geometry is pointing to.
I have a second layer of STUDENTS of which the visibility of the features is driven by the attribute / sort ID of the coverage feature - which works just fine.
I'd like to be able to set the page extents (xmin, ymin, etc.) using the bounding box of those visible STUDENTS, so as to use a dynamic scale in order to see all the students who attend the SCHOOL / current atlas feature.
But as far as I can see, there is no variable to control the features visible on the map.