new ol.style.Text(opt_options) experimental
Name | Type | Description | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
Methods
-
getFill(){ol.style.Fill} experimental
-
Returns:
Fill style.
-
getFont(){string|undefined} experimental
-
Returns:
Font.
-
getOffsetX(){number} experimental
-
Returns:
Horizontal text offset.
-
getOffsetY(){number} experimental
-
Returns:
Vertical text offset.
-
getRotation(){number|undefined} experimental
-
Returns:
Rotation.
-
getScale(){number|undefined} experimental
-
Returns:
Scale.
-
getStroke(){ol.style.Stroke} experimental
-
Returns:
Stroke style.
-
getText(){string|undefined} experimental
-
Returns:
Text.
-
getTextAlign(){string|undefined} experimental
-
Returns:
Text align.
-
getTextBaseline(){string|undefined} experimental
-
Returns:
Text baseline.
-
setFill(fill) experimental
-
Set the fill.
Name Type Description fill
ol.style.Fill Fill style.
-
setFont(font) experimental
-
Set the font.
Name Type Description font
string | undefined Font.
-
setRotation(rotation) experimental
-
Set the rotation.
Name Type Description rotation
number | undefined Rotation.
-
setScale(scale) experimental
-
Set the scale.
Name Type Description scale
number | undefined Scale.
-
setStroke(stroke) experimental
-
Set the stroke.
Name Type Description stroke
ol.style.Stroke Stroke style.
-
setText(text) experimental
-
Set the text.
Name Type Description text
string | undefined Text.
-
setTextAlign(textAlign) experimental
-
Set the text alignment.
Name Type Description textAlign
string | undefined Text align.
-
setTextBaseline(textBaseline) experimental
-
Set the text baseline.
Name Type Description textBaseline
string | undefined Text baseline.