Property listing¶
This page lists the supported rendering properties. See CSS value types for more information about the value types for each.
Point symbology¶
Property |
Type |
Meaning |
Accepts Expression? |
---|---|---|---|
|
url, symbol |
The image or well-known shape to render for points |
yes |
|
string |
The composite mode to be used and the optional opacity separated with a comma. See the full list of available modes. |
no |
|
string (MIME Type) |
The type of the image referenced by a url() |
No, defaults to ‘image/jpeg’ |
|
expression |
An expression to use for the geometry when rendering features |
yes |
|
length |
The width to assume for the provided image. The height will be adjusted to preserve the source aspect ratio. |
yes |
|
angle |
A rotation to be applied (clockwise) to the mark image. |
yes |
|
integer |
Controls the z ordering of output |
no |
|
boolean |
If true the point symbol will be considered an obstacle for labels, no label will overlap it |
no |
|
expression |
The part of the mark to place over the point or middle of the polygon. This takes 2 values - x y where x=0 is the left edge of the label, x=1 is the right edge. y=0 is the bottom edge of the label, y=1 is the top edge. Specify 0.5 0.5 to centre a label. |
yes |
|
expression |
This is for fine-tuning mark-anchor. x and y values specify pixel offsets to adjust the mark position. |
yes |
Line symbology¶
Property |
Type |
Meaning |
Accepts Expression? |
---|---|---|---|
|
color, url, symbol |
The color, graphic, or well-known shape to use to stroke lines or outlines |
yes |
|
string |
The composite mode to be used and the optional opacity separated with a comma. See the full list of available modes. |
no |
|
expression |
An expression to use for the geometry when rendering features. |
yes |
|
expression |
Draws a parallel line using the specified distance, positive values offset left, negative right. |
yes |
|
string (MIME Type) |
The type of the image referenced by a url() |
No, defaults to ‘image/jpeg’ |
|
percentage |
A value in the range of 0 (fully transparent) to 1.0 (fully opaque) |
yes |
|
length |
The width to use for stroking the line. |
yes |
|
length |
An image or symbol used for the stroke pattern will be stretched or squashed to this size before rendering. If this value differs from the stroke-width, the graphic will be repeated or clipped as needed. |
yes |
|
angle |
A rotation to be applied (clockwise) to the stroke image. See also the stroke- repeat property. |
yes |
|
keyword: butt, square, round |
The style to apply to the ends of lines drawn |
yes |
|
keyword: miter, round, bevel |
The style to apply to the “elbows” where segments of multi-line features meet. |
yes |
|
list of lengths |
The lengths of segments to use in a dashed line. |
no |
|
length |
How far to offset the dash pattern from the ends of the lines. |
yes| |
|
keyword: repeat, stipple |
How to use the provided graphic to paint the line. If repeat, then the graphic is repeatedly painted along the length of the line (rotated appropriately to match the line’s direction). If stipple, then the line is treated as a polygon to be filled. |
yes |
|
integer |
Controls the z ordering of output |
no |
|
boolean |
If true the line will be considered an obstacle for labels, no label will overlap it |
no |
Polygon symbology¶
Property |
Type |
Meaning |
Accepts Expression? |
---|---|---|---|
|
color, url, symbol |
The color, graphic, or well-known shape to use to stroke lines or outlines |
yes |
|
string |
The composite mode to be used and the optional opacity separated with a comma. See the full list of available modes. |
no |
|
expression |
An expression to use for the geometry when rendering features. |
yes |
|
string (MIME Type) |
The type of the image referenced by a url() |
No, defaults to ‘image/jpeg’ |
|
percentage |
A value in the range of 0 (fully transparent) to 1.0 (fully opaque) |
yes |
|
length |
The width to assume for the image or graphic provided. |
yes |
|
angle |
A rotation to be applied (clockwise) to the fill image. |
yes |
|
integer |
Controls the z ordering of output |
no |
|
boolean |
If true the polygon will be considered an obstacle for labels, no label will overlap it |
no |
|
List of lengths |
A list of 1 to 4 values, specifying the space between repeated graphics in a texture paint. One value is uniform spacing in all directions, two values are considered top/bottom and right/left, three values are considered top, right/left, bottom, four values are read as top,right,bottom,left. |
no |
|
none,grid,free |
Activates random distribution of symbols in a texture fill tile. See Fills with randomized symbols for details. Defaults to “none” |
no |
|
integer number |
The seed for the random generator. Defaults to 0 |
no |
|
none/free |
When set to “free” activates random rotation of the symbol in addition to random distribution. Defaults to “none” |
no |
|
positive integer number |
Number of symbols to be placed in the texture fill tile. May not be respected due to location conflicts (no two symbols are allowed to overlap). Defaults to 16. |
no |
|
positive integer number |
Size of the texture paint tile that will be filled with the random symbols. Defaults to 256. |
no |
Text symbology (labelling) - part 1¶
Property |
Type |
Meaning |
Accepts Expression? |
---|---|---|---|
|
string |
The text to display as labels for features |
yes |
|
expression |
An expression to use for the geometry when rendering features. |
yes |
|
expression |
The part of the label to place over the point or middle of the polygon. This takes 2 values - x y where x=0 is the left edge of the label, x=1 is the right edge. y=0 is the bottom edge of the label, y=1 is the top edge. Specify 0.5 0.5 to centre a label. |
yes |
|
expression |
This is for fine-tuning label-anchor. x and y values specify pixels to adjust the label position. For lines, a single value will make the label be parallel to the line, at the given distance, while two values will force a point style placement, with the label painted horizontally at the center of the line (plus the given offsets) |
yes |
|
expression |
Clockwise rotation of label in degrees. |
yes |
|
expression |
Used to determine which labels are drawn on top of other labels. Lower z-indexes are drawn on top. |
yes |
|
mark, symbol |
A graphic to display behind the label, such as a highway shield. |
yes |
|
string (MIME Type) |
The type of the image referenced by a url() |
No, defaults to ‘image/jpeg’ |
|
one of |
Placement of the shield relative to the label. The default is |
no |
|
expression |
The part of the shield to place over the point or middle of the polygon.
This takes 2 values - x y where x=0 is the left edge of the label, x=1 is the right edge.
y=0 is the bottom edge of the label, y=1 is the top edge. Specify 0.5 0.5 to centre a label.
This property activates only if the |
yes |
|
expression |
This is for fine-tuning shield-anchor. x and y values specify pixels to adjust the shield position.
This property activates only if the |
yes |
|
string |
The name of the font or font family to use for labels |
yes |
|
fill |
The fill to use when rendering fonts |
yes |
|
keyword: normal, italic, oblique |
The style for the lettering |
yes |
|
keyword: normal, bold |
The weight for the lettering |
yes |
|
length |
The size for the font to display. |
yes |
|
percentage |
The opacity of the text, from 0 (fully transparent) to 1.0 (fully opaque). |
yes |
|
length |
The size of a halo to display around the lettering (to enhance readability). This is required to activate the halo feature. |
yes |
|
color |
The color for the halo |
yes |
|
percentage |
The opacity of the halo, from 0 (fully transparent) to 1.0 (fully opaque). |
yes |
|
length |
The amount of ‘padding’ space to provide around labels. Labels will not be rendered closer together than this threshold. This is equivalent to the spaceAround vendor parameter. |
no |
|
one of: |
If true, the render will treat features with the same label text as a single feature for the purpose of labelling. This is equivalent to the group vendor parameter. |
no |
|
length |
If set, this is the maximum displacement that the renderer will apply to a label. Labels that need larger displacements to avoid collisions will simply be omitted. This is equivalent to the maxDisplacement vendor parameter. |
no |
Text symbology (labelling) - part 2¶
Property |
Type |
Meaning |
Accepts Expression? |
---|---|---|---|
|
length |
This is equivalent to the minGroupDistance vendor parameter in SLD. |
no |
|
length |
If set, the renderer will repeat labels at this interval along a line. This is equivalent to the repeat vendor parameter. |
no |
|
one of |
when using grouping, whether to label only the longest line that could be built by merging the lines forming the group, or also the other ones. This is equivalent to the allGroup vendor parameter. |
no |
|
one of |
If enabled, the renderer will remove overlapping lines within a group to avoid duplicate labels. This is equivalent to the removeOverlaps vendor parameter. |
no |
|
one of |
Determines whether the renderer will show labels that are longer than the lines being labelled. This is equivalent to the allowOverrun vendor parameter. |
no |
|
one of |
If enabled, the render will curve labels to follow the lines being labelled. This is equivalent to the followLine vendor parameter. |
no |
|
one of |
The maximum amount of curve allowed between two characters of a label; only applies when ‘follow-line: true’ is set. This is equivalent to the maxAngleDelta vendor parameter. |
no |
|
length |
Labels will be wrapped to multiple lines if they exceed this length in pixels. This is equivalent to the autoWrap vendor parameter. |
no |
|
one of |
By default, the renderer will flip labels whose normal orientation would cause them to be upside-down. Set this parameter to false if you are using some icon character label like an arrow to show a line’s direction. This is equivalent to the forceLeftToRight vendor parameter. |
no |
|
one of |
Set this to false to disable label conflict resolution, allowing overlapping labels to be rendered. This is equivalent to the conflictResolution vendor parameter. |
no |
|
scale |
The renderer will omit labels that fall below this “match quality” score. The scoring rules differ for each geometry type. This is equivalent to the goodnessOfFit vendor parameter. |
no |
|
expression |
Specifies an expression to use in determining which features to prefer if there are labelling conflicts. This is equivalent to the Priority SLD extension. |
yes |
Text symbology (labelling) - part 3¶
Property |
Type |
Meaning |
Accepts Expression? |
---|---|---|---|
|
string, one of |
Specifies a mode for resizing label graphics (such as
highway shields) to fit the text of the label. The default mode,
‘none’, never modifies the label graphic. In |
none |
|
list of lengths, one to four elements long. |
Specifies an extra margin (in pixels) to be applied to the label text when calculating label dimensions for use with the |
none |
|
one of |
If enabled, the renderer will underline labels. This is equivalent to the underlineText vendor parameter. |
no |
|
one of |
If enabled, the renderer will strikethrough labels. This is equivalent to the strikethroughText vendor parameter. |
no |
|
an amount of pixels, can be negative |
If present, expands or shrinks the space between subsequent characters in a label according to the value specified |
no |
|
an amount of pixels, must be zero or positive |
If present, expands the space between subsequent words in a label according to the value specified |
no |
Raster symbology¶
Property |
Type |
Meaning |
Accepts Expression? |
---|---|---|---|
|
string |
The list of raster channels to be used in the output. It can be “auto” to make the renderer choose the best course of action, or a list of band numbers, a single one will generate a gray image, three will generate an RGB one, four will generate a RGBA one. E.g., “1 3 7” to choose the first, third and seventh band of the input raster to make an RGB image |
no |
|
string |
The composite mode to be used and the optional opacity separated with a comma. See the full list of available modes. |
no |
|
expression |
The attribute containing the raster to be painted. Normally not needed, but it would work if you had a custom vector data source that contains a GridCoverage attribute, in order to select it |
yes |
|
floating point |
A value comprised between 0 and 1, 0 meaning completely transparent, 1 meaning completely opaque. This controls the whole raster transparency. |
no |
|
string |
Allows to stretch the range of data/colors in order to enhance tiny differences. Possible values are ‘normalize’, ‘histogram’ and ‘none’ |
no |
|
floating point |
Gamma adjustment for the output raster |
no |
|
integer |
Controls the z ordering of the raster output |
no |
|
string |
Applies a color map to single banded input. The contents are a space separate list of |
no |
|
string |
Controls how the color map entries are interpreted, the possible values are “ramp”, “intervals” and “values”, with ramp being the default if no “raster-color-map-type” is provided. The default “ramp” behavior is to linearly interpolate color between the provided values, and assign the lowest color to all values below the lowest value, and the highest color to all values above the highest value. The “intervals” behavior instead assigns solid colors between values, whilst “values” only assigns colors to the specified values, every other value in the raster is not painted at all |
no |
|
string |
Controls if and how color map entry labels are included, as attributes, in the GetFeatureInfo output. Valid values are |
no |
|
string |
If color map entry labels are included in the GetFeatureInfo output, this property controls then name of the attribute that will contain them. |
no |
Symbol properties¶
These properties are applied only when styling built-in symbols. See Styled marks for details.
Property |
Type |
Meaning |
Accepts Expression? |
---|---|---|---|
|
length |
The size at which to render the symbol. |
yes |
|
angle |
An angle through which to rotate the symbol. |
yes |