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 performance, but at the cost of using more memory, so off by default. |
|
string |
src-over |
See Compositing |
|
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. With |
|
float |
0 |
Minimum map scale above which this layer should be rendered. |
|
4x float |
Maximum extent 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 referenced, e.g. for error messages. |
|
float |
1.0 |
opacity of the layer towards already rendered lower layers and the <Map> background |
|
bool |
false |
unused? |
string |
none |
Sort the layer’s features by this column before rendering, |
|
|
SRS string |
epsg:4326 |
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>