| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Methods
-
Clones the style.
Returns:
The cloned style.
-
Get the background fill style for the text.
Returns:
Fill style.
-
Get the background stroke style for the text.
Returns:
Stroke style.
-
Get the fill style for the text.
Returns:
Fill style.
-
Get the font name.
Returns:
Font.
-
Get the maximum angle between adjacent characters.
Returns:
Angle in radians.
-
Get the x-offset for the text.
Returns:
Horizontal text offset.
-
Get the y-offset for the text.
Returns:
Vertical text offset.
-
Get the
overflowconfiguration.Returns:
Let text overflow the length of the path they follow.
-
Get the padding for the text.
Returns:
Padding.
-
Get the label placement.
Returns:
Text placement.
-
Determine whether the text rotates with the map.
Returns:
Rotate with map.
-
Get the text rotation.
Returns:
Rotation.
-
Get the text scale.
Returns:
Scale.
-
Get the stroke style for the text.
Returns:
Stroke style.
-
Get the text to be rendered.
Returns:
Text.
-
Get the text alignment.
Returns:
Text align.
-
Get the text baseline.
Returns:
Text baseline.
-
Set the background fill.
Name Type Description fillmodule:ol/style/Fill~Fill Fill style.
-
Set the background stroke.
Name Type Description strokemodule:ol/style/Stroke~Stroke Stroke style.
-
Set the fill.
Name Type Description fillmodule:ol/style/Fill~Fill Fill style.
-
Set the font.
Name Type Description fontstring | undefined Font.
-
Set the maximum angle between adjacent characters.
Name Type Description maxAnglenumber Angle in radians.
-
Set the x offset.
Name Type Description offsetXnumber Horizontal text offset.
-
Set the y offset.
Name Type Description offsetYnumber Vertical text offset.
-
Set the
overflowproperty.Name Type Description overflowboolean Let text overflow the path that it follows.
-
Set the padding (
[top, right, bottom, left]).Name Type Description paddingArray.<number> Padding.
-
Set the text placement.
Name Type Description placementmodule:ol/style/TextPlacement | string Placement.
-
Set the rotation.
Name Type Description rotationnumber | undefined Rotation.
-
Set the scale.
Name Type Description scalenumber | undefined Scale.
-
Set the stroke.
Name Type Description strokemodule:ol/style/Stroke~Stroke Stroke style.
-
Set the text.
Name Type Description textstring | undefined Text.
-
Set the text alignment.
Name Type Description textAlignstring | undefined Text align.
-
Set the text baseline.
Name Type Description textBaselinestring | undefined Text baseline.