Module: cercaliagl/SimpleLabel


Classes

SimpleLabel

Type Definitions

SimpleLabelOptions{Object}

Properties:
Name Type Argument Description
fontSize number <optional>

Text size, in pixels. Default 13.

offset Array.<number> <optional>

Simpel Label offset, units in ems. Defaults to [0, 0].

anchor string <optional>

Anchor. Possible values: center, left, right, top, bottom, top-left, top-right, bottom-left, bottom-right. Defaults top

justify string <optional>

Justify: Possible values: auto, left, center, right. Defaults center

text string

Simple Label text (with no background).

visible boolean

Visible. Show or hide text.

textColor string <optional>

Text color. Default #000000.

textOpacity string <optional>

Text opacity. Default 1.

strokeColor string <optional>

Stroke color. Default #ffffff.

strokeWidth number <optional>

Stroke width. Default 2.

textRotation number <optional>

Text rotation. Default 0.