OptionalalignmentAlignment for styles of type "Text". Possible values are: "map" and "viewport". "map" aligns to the plane of the map and "viewport" aligns to the plane of the viewport/screen. Default alignment for Text based on point geometries is "viewport" while "map" is the default for line geometries.
Optional ExperimentalaltitudeAltitude of the Text center in meters.
Describes the vertical distance from the global ground plane (0m) to the Text.
Supported values:
Notes:
OptionalanchorSets the anchor point for styles of type "Text" used with Line or Polygon geometry.
Possible values for Line geometry are "Coordinate" and "Line".
Possible values for Polygon geometry are "Center" and "Centroid".
OptionalcheckEnable or disable the space check for point styles on line geometries. Only applies to "Text" styles with anchor set to "Line". If check checkLineSpace is enabled the respective style is only displayed if there is enough space on the line, otherwise it is not displayed.
OptionalcollideEnable or disable collision detection. If the collision detection is enabled for multiple Styles within the same StyleGroup, the respective Styles are handled as a single Object ("CollisionGroup") where the combined bounding-box is determined automatically.
OptionalcollisionEnables collision detection and combines all styles of a StyleGroup with the same "CollisionGroup" into a single logical object for collision detection.
OptionalfillSets the color to fill the text.
Color for a detailed list of possible supported formats.
OptionalfontCSS font string for texts. It is only valid for Text.
OptionallineEnable oder Disable line wrapping for styles of type "Text". The line wrapping for text on (Multi)Linestring geometry with anchor set to "Line" is disabled by default, otherwise it's 14 characters.
OptionaloffsetOffset the text in pixels on x-axis. A positive value offsets to the right, a negative value to the left. The default unit is pixels.
OptionaloffsetOffset the text in pixels on y-axis. A positive value offsetY offsets downwards, a negative value upwards. The default unit is pixels.
OptionaloffsetOffset the text in pixels on z-axis. A positive value offsets up, a negative value down. The default unit is pixels.
OptionalopacityDefines the opacity of the style. The value must be between 0.0 (fully transparent) and 1.0 (fully opaque). It is valid for all style types.
OptionalpriorityIn case of label collision, Text with a higher priority (lower value) will be drawn before lower priorities (higher value). If the collision detection is enabled for multiple Styles within the same StyleGroup, the highest priority (lowest value) is used.
OptionalrepeatMinimum distance in pixels between repeated style-groups on line geometries. Applies per tile only.
OptionalrotationRotate text around it's center in degrees.
Optional ExperimentalscaleControls perspective scaling of map-aligned Text labels based on their feature's altitude.
When disabled, a label is scaled as if its feature were at ground level.
This applies only when alignment is "map"; viewport-aligned labels are unaffected.
Text font sizes are pixel-based, so scaling is disabled by default and enabled by default when altitude resolves to "terrain".
OptionalstrokeSets the stroke color of the text (outline).
Color for a detailed list of possible supported formats.
OptionalstrokeSets the width of the stroke (outline) to display the text with. The unit of strokeWidth is defined in pixels.
OptionaltextText is either a string or a function that generates the string that should be displayed. It is valid for Text style only.
OptionaltextThe "textAnchor" attribute is used to align the text relative to the anchor point.
Possible values:
Optionaltext"textRef" Reference to an attribute of an feature that's value should be displayed as text. If both "text" and "textRef" are set, "text" prevails. It is only required by Text.
Specifies the type of style to render.
Indicates the drawing order within a layer. Styles with larger zIndex value are rendered above those with smaller values. The zIndex is defined relative to the "zLayer" property. If "zLayer" is defined all zIndex values are relative to the "zLayer" value.
OptionalzIndicates drawing order across multiple layers. Styles using zLayer with a high value are rendered on top of zLayers with a low value. If no zLayer is defined, it will fall back to the LayerStyle.zLayer or depend on the display layer order. The first (lowest) layer has a zLayer value of 1.
Interface for configuring the visual appearance of Text.