This question already has an answer here:
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?