I got a problem with setting an Atlas. I have a polygon layer with around 100 polygons, and a line layer.
What i need to do is to generate a map for each polygon and show on the fixed scale (1:500) those specified lines.
I configured atlas to generate those maps based on polygon layer, but when polygon is large, lines are not visible because atlas centering map to the centre of polygon. Is there a way to generate map centered to those lines?
Im using a "inverted polygons" as a style of Polygon layer becouse im showing only one specific polygon that im reffering to on atlas using "$id = @atlas_featureid" in expression.
Got some screenshots to show what is in my mind:
Screen 1 - Nicely generated map
Screen 2 - Map generated in 1:1000 scale showing the problem and the boundary i would like to show while in 1:500