[Qgis-user] styling mutiple attributes within the same layer

Andreas Neumann a.neumann at carto.net
Sat Feb 23 06:06:55 PST 2019


Hi Groene,

you can set multiple styles on a single layer. No problem. Just right click the layer, select styles and add a new style.

Greetings, Andreas

Am 22. Februar 2019 23:03:03 MEZ schrieb Groene Bij <mail at groenebij.nl>:
>Hi,
>
> 
>
>Please consider the following case:
>
>I have a layer with geometries and 40 attributes. I would like to style
>each
>attribute according to the same rule. To do this in qgis I would have
>to
>copy the layer 40 times and set the style to a different attribute on
>each
>layer.
>
>Then I can select which layer to look at to see the result of the
>styling.
>
>This means I have 40 layers. Making a webmap out of this project, gives
>me a
>large webmap with 40 layer data files (geojson).
>
> 
>
>Interestingly, many Leaflet textbook examples seem to suggest the
>possibility to write a styling function for each attribute and every
>time
>refer to the same layer. Then add buttons for each styling function and
>the
>function to display he layer selected.
>
>This means I should have a webmap with just 1 layer data file
>(geojson).
>
> 
>
>Is this correct? Is it possible to code a Leaflet map with 40 styling
>functions for 1 geojson layer?
>
>Why do I need to create 40 layers in qgis to get the same result? Or do
>I? 
>
> 
>
>I am probably missing something.
>
> 
>
> 
>
> 
>
> 
>
> 

-- 
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190223/fcbd8204/attachment.html>


More information about the Qgis-user mailing list