Constructors
constructor
- new Text(opt_options?): Text
Methods
getFill
- getFill(): Fill
Fill style.
getFont
- getFont(): string
Returns string
Font.
getOffsetX
- getOffsetX(): number
Returns number
Horizontal text offset.
getOffsetY
- getOffsetY(): number
Returns number
Vertical text offset.
getRotateWithView
- getRotateWithView(): boolean
Returns boolean
Rotate with map.
getRotation
- getRotation(): number
Returns number
Rotation.
getScale
- getScale(): number
Returns number
Scale.
getStroke
- getStroke(): Stroke
Stroke style.
getText
- getText(): string
Returns string
Text.
getTextAlign
- getTextAlign(): string
Returns string
Text align.
getTextBaseline
- getTextBaseline(): string
Returns string
Text baseline.
setFill
- setFill(fill): void
Returns void
setFont
- setFont(font): void
Returns void
setOffsetX
- setOffsetX(offsetX): void
Returns void
setOffsetY
- setOffsetY(offsetY): void
Returns void
setRotation
- setRotation(rotation): void
Returns void
setScale
- setScale(scale): void
Returns void
setStroke
- setStroke(stroke): void
Returns void
setText
- setText(text): void
Returns void
setTextAlign
- setTextAlign(textAlign): void
Returns void
setTextBaseline
- setTextBaseline(textBaseline): void
Returns void
Classdesc
Set text style for vector features.
Param: opt_options
Options.
Api