[Qgis-developer] Multiple styles per layer

Alexandre Neto senhor.neto at gmail.com
Wed Jan 7 08:42:31 PST 2015


I was wondering the same as Andreas. And now I get it. No more duplicate
layers for different print composers! Nice :)

Will this include choosing the layer style by data-defined-properties?
And could this style choice be saved in the presets?
It would do wonders in projects with several composers and in atlas
generation.

Thanks for your work!

Alexandre Neto


On Wed, Jan 7, 2015 at 4:33 PM, Martin Dobias <wonder.sk at gmail.com> wrote:

> Hi Andreas
>
> On Wed, Jan 7, 2015 at 11:15 PM, Andreas Neumann <a.neumann at carto.net>
> wrote:
>
>> Hi Martin,
>>
>> I just saw your recent commit for support of multiple styles - but I
>> don't fully get it how it works. I can add a new style and can switch to
>> another style, but it seems whenever I change the symbology, it resets all
>> styles at once?
>>
>> Or maybe I don't fully get it how it is supposed to work.
>>
>
> When you change symbology, only the currently active style should be
> modified - the others should stay the same (if not then there's a bug and
> please let me know). This should work: 1. add a layer, 2. add a new style
> to it (will get activated), 3. change symbology, 4. switch back to previous
> style - you should see the previous symbology.
>
> The idea is to have the possibility to define several styles for a layer -
> and quickly switch between them. Before you would need to save and then
> load the styles from QML files.
>
> As the style incorporates not only rendering appearance, but also other
> things like forms, so you could define different forms for different
> styles. Endless new opportunities :-)
>
>
> BTW: cool feature - would be cool to also expose the multiple styles in
>> QGIS server (e.g. to support color and black/white styles) for the same
>> layer.
>>
>
> Coming soon :-)
>
> Cheers
> Martin
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150107/fe8998fc/attachment-0001.html>


More information about the Qgis-developer mailing list