3.6. Layer
A layer renders data from a data source using one or more styles.
Attribute | Value | Default | Description |
---|---|---|---|
|
float |
0 |
|
|
bool |
false |
On layers with multiple styles: read features from data source only once and cache them in memory. Improves perforance, but at the cost of using more memory, so off by default. |
|
bool |
false |
Clear the placement cache from previous layers, so that texts, points and markers may overlap with those from previous layers. |
|
string |
none |
On layers with multiple styles these styles are processed one by one in the given order by default. When giving a group-by property, feature elements will be sorted by this property, and styles will be processed in order for each distinct group value. E.g with |
|
float |
0 |
Minimum map scale above which this layer should be rendered. |
|
4x float |
Maximum exent for which features should be processed. |
|
|
float |
max. float |
Maximum map scale up to which this layer should be rendered. |
|
string |
none |
Name by which the layer can be refeenced, e.g. for error messaes. |
|
bool |
false |
unused? |
|
proj4 srs string |
|
Spatial reference system |
|
boolean |
true |
Whether this layer should actually be processed or not. Caution: when set to |
<Layer name="layer_1">
<StyleName>style_1</StyleName>
<StyleName>style_2</StyleName>
<DataSource>
[...]
</DataSource>
</Layer>