[QGIS-Developer] Problem with atlas rule-based styling

Andreas Neumann a.neumann at carto.net
Fri Sep 15 01:30:04 PDT 2017


Answering myself:

by adding in the @map_id variable into the rule I can avoid that the 
main map canvas gets changed. My particular problem is thus solved.

But the question remains: why is the Atlas printing feature changing the 
main map canvas at all? Anything done in the print composer should have 
no influence on the rendering in the main canvas in my opinion. Other 
thoughts? Can this be fixed with QGIS 3 ?

Thanks,
Andreas

On 14.09.2017 18:34, Andreas Neumann wrote:
> Hi,
>
> I use a rule-based styling to distinguish the feature is currently 
> active in Atlas from other features that aren't active.
>
> This is my very simple rule:
>
> $id =  @atlas_featureid
>
> The problem is when I close the atlas data sheet (print composer) - 
> then the symbology rule still remains active in the main map.
>
> Is there a way around this problem? Can I detect if the print composer 
> atlas sheet is open or closed?
>
> Thanks for any ideas,
>
> Andreas
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer



More information about the QGIS-Developer mailing list