Creates a new TextElement
.
The text to display.
The position or a list of points for a curved text, both in world space.
TextElement
text rendering parameters.
TextElement
text layout parameters.
The priority of the TextElement. Elements with the highest priority get
placed first, elements with priority of
0` are placed last, elements with a
negative value are always rendered, ignoring priorities and allowing overrides.
Optional X offset of this TextElement
in screen coordinates.
Optional Y offset of this TextElement
in screen coordinates.
Optional string to identify feature (originated from DataSource). Number ids are deprecated in favor of strings.
Distance to the camera (0.0 = camera position, 1.0 = farPlane) at which the label starts fading out (opacity decreases).
Distance to the camera (0.0 = camera position, 1.0 = farPlane) at which the label becomes transparent. A value of <= 0.0 disables fading.
Direction represented as an angle in degrees clockwise from north to offset the icon in world space.
If true
, the label will always be rendered on top. If overlapping with other labels, the
render order is undefined;
Screen space bounds for this TextElement
.
Scaling factor of text. Defaults to 0.5, reducing the size ot 50% in the distance.
If set to true
the geometry has been already overlaid on elevation.
Distance to the camera (0.0 = camera position, 1.0 = farPlane) at which the label becomes transparent. A value of <= 0.0 disables fading.
Distance to the camera (0.0 = camera position, 1.0 = farPlane) at which the label starts fading out (opacity decreases).
Optional string to identify feature (originated from DataSource). Number ids are deprecated in favor of strings.
Ignore distance limit. Used for label in labeled-icons.
Specified kind of geometry. One kind is set as default in the technique, and can be overridden in the style.
TextElement
text layout parameters.
Determines maximum zoom level for visibility. Can be used to reduce the number of visible
TextElement
s based on zoom level.
If true
, label is allowed to overlap other labels or icons of lower priority.
Determines minimum zoom level for visibility. Can be used to reduce the number of visible
TextElement
s based on zoom level.
Direction represented as an angle in degrees clockwise from north to offset the icon in world space.
The position or a list of points for a curved text, both in world space.
The priority of the TextElement. Elements with the highest priority get
placed first, elements with priority of
0` are placed last, elements with a
negative value are always rendered, ignoring priorities and allowing overrides.
If specified, determines the render order between TextElement
s. The number different
renderOrders should be as small as possible, because every specific renderOrder
may result
in one or more draw calls.
TextElements with the same integer renderOrder
will be rendered in the same batch.
The renderOrder
of TextElement
s are only relative to other TextElement
s, and not other
map elements.
A TextElement
with a higher renderOrder
will be rendered after a TextElement
with a
lower renderOrder
.
TextElement
text rendering parameters.
If true
, label will reserve screen space, other markers of lower priority will not be
able to overlap.
The text to display.
Time to fade in text in milliseconds.
Optional user data. Will be retrieved during picking.
Determines visibility. If set to false
, it will not be rendered.
Optional X offset of this TextElement
in screen coordinates.
Optional Y offset of this TextElement
in screen coordinates.
Text elements with this priority are placed on screen before any others.
Sets the style used for text layout.
The style used to layout this text element, undefined if not set yet.
Sets the style used for text layout.
The style to use.
The style used to layout this text element, undefined if not set yet.
The list of points in world space used to render the text along a path or undefined
.
The text element position or the first point of the path used to render a curved text, both in world space.
Sets style used for text rendering.
The style used to render this text element, undefined if not set yet.
Sets style used for text rendering.
The style to use.
The style used to render this text element, undefined if not set yet.
If true
, TextElement
is allowed to overlap other labels or icons of lower priority.
If true
, TextElement
is allowed to overlap other labels or icons of lower priority.
If true
, TextElement
will reserve screen space, other markers of lower priority will not
be able to overlap.
If true
, TextElement
will reserve screen space, other markers of lower priority will not
be able to overlap.
Disposes of any allocated resources.
Whether this text element has a valid feature id.
Generated using TypeDoc
TextElement
is used to create 2D text elements (for example, labels).