How to highlight the printed feature when printing in atlas print composer QGIS
Lately, I wanted to export a map from qgis to a pdf displaying each one from the 200 features I had. So I wanted to print 200 pdfs and for that I used atlas feature of the print composer where you can automatically print each feature of your layer. And I’ve got the job done but I also wanted to get the printed feature highlighted or differ in some way. Something you can’t get done from the print composer environment.
So if you want to highlight the selected feature when printing in atlas print composer you should do the following:
1. Into QGIS Main Window –> Layer Properties –> Style we choose Rule-Based from the dropdown and create a new rule with the color we need and as rule we set the following $id=$atlasfeatureid
2. Then go to print composer choose Atlas preview and view the changes.