I have 20 lines on one layer, and many of them overlap like a grid.

I have currently used the following:

[%'ROUTE #' || CASE WHEN $id = $atlasfeatureid THEN "Route #" END%]

When I use the atlas function to zoom to a specific line, it will still show the other lines within the zoom extent.

I only want the line that the atlas function is zooming to to be visible, but still allow me to flick through all 20 lines/atlas pages.

Is there any way to do this?


You can use a Rule-based style with the filter $id = @atlasfeatureid to hide the features that you are not interested in.

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.