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?

marked as duplicate by mgri, John Powell, whyzar, Brad Nesom, Mapperz Mar 20 '17 at 13:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


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.