TextStyle describes how text should be formatted on the map.
TextStyle is not an actual type in the LuciadRIA API. This is only documentation of the
the expected structure of an object in order to be considered a
All properties are optional.
The baseline alignment of the text for the vertical anchoring of the text.. Allowed values are
bottom. For more information about these values, please visit the
W3 documentation for the html5 canvas "textBaseline" property.
The rotation of the text, clockwise in degrees. The text is rotated in view-space. This means the angle is not an orientation of the text with regards to the Earth's coordinate system, but a rotation in the plane of the screen. An angle with value 0 means the text is oriented straight up.
Whether or not this text should be draped on top of the terrain.
By default, a shape is draped if it has undefined or zero Z. Otherwise it will not be draped.
You can override the default behaviour by setting this flag true or false. If you explicitly drape a 3D shape, its 2D "shadow" is painted on the terrain.
This setting is only relevant for 3D maps and is ignored for 2D maps.
The fill color as a CSS color string. This is the color of the text itself.
The font to use, as a CSS font string.
The halo color as a CSS color string. This is an outline around the text.
The halo width.
When this text should be painted in 3D in relation to other 3D data.
The X offset in pixels that should be applied with respect to the location specified by the shape parameter.
the Y offset in pixels that should be applied wrt the location specified by the shape parameter. specified by the shape parameter.
The stroke of the text. This is the outline of the text. It can partially overlap with the fill and halo.
the stroke width
The horizontal anchoring of the text for the given location.
Allowed values are
"start" means that the text will be anchored at the first character of the text-string.
"end" means the text will be anchored at the last character of the string.
"center" means the text will be centered on the anchor. The default value is
The value for
textAnchor controls also how every element of a multi-line text is horizontally aligned.
The Z-order of this shape. Shapes will be painted from lowest to highest Z-order.