In a map layout template, I want to insert an expression which gets all feature's names of a certain layer, which are contained in the current layout's view/extent. Is there a way to get an aggregate of all features of a layer which are contained in the current map view?
I've come so far, to check if a single feature of a layer is contained, but don't know how to go on from here:
map_get(item_variables('Main Map'), 'map_extent'),
I'm quite sure there is an expression combined with the aggregate function, which would enable me to concatenate all the names of the features in the current layout view and use this as a text item in my final layout.