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

Nyall Dawson nyall.dawson at gmail.com
Fri Sep 15 01:37:32 PDT 2017


On 15 September 2017 at 18:30, Andreas Neumann <a.neumann at carto.net> wrote:
> 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 ?

It was by design originally, allowing the symbology and labeling rules
to be tweaked in the canvas and see immediately the result this would
have.

Otherwise you'd need to keep changing settings -> flipping to composer
and refreshing -> then back to canvas to tweak again.

Nyall

>
> 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
>
>
> _______________________________________________
> 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