Class: S3MTilesLabelStyle

S3MTilesLabelStyle

new S3MTilesLabelStyle()

S3M tag style class. Based on the point dataset, tiles generated directly (without the need for desktop label thematic maps) can achieve dynamic setting of text label styles for S3M tiles in the front-end.

Name Type Description
options.font String optional

Text style.

options.fillColor Color optional

Fill color.

options.outlineColor Color optional

Text border color.

options.outlineWidth Number optional

Width of text border.

options.showBackground Boolean optional

Whether to display a text background box.

options.backgroundColor Color optional

The color of the text background box.

options.fillStyle LabelStyle optional

Text filling style.

options.pixelOffset Cartesian2 optional

Text pixel offset (based on anchor points).

options.scale Number optional

Text scaling size.

options.textField Object optional

Text content field.

options.heightReference HeightReference optional

Height mode.

Members

backgroundColorColor

Get or set the color of the text background box.

Default Value:
new Color(0.165, 0.165, 0.165, 0.8)

distanceDisplayConditionObject

Get or set the visible distance of text.

fillColorColor

Get or set the fill color of the label.

Default Value:
Color.WHITE

fillStyleLabelStyle

Get or set the text fill style.

Default Value:
LabelStyle.FILL

fontString

Get or set the font of the label, and the syntax rules of the font are the same as those of "font" in CSS.

Default Value:
'30px sans-serif'

heightReferenceObject

Get or set the height mode of text labels, including absolute height, relative height, etc.

outlineColorColor

Get or set the color of the text border.

Default Value:
Color.BLACK

outlineWidthNumber

Get or set the width of the text border.

Default Value:
1.0

pixelOffsetCartesian2

Obtain or set the pixel offset of text labels based on anchor points, which is mainly used for complex arrangements where there are both labels and bulletin boards at the same location. Shift from left to right when increasing x, and from top to bottom when increasing y. After offset, the original position of the label will be represented by a small yellow dot.

Default Value:
Cartesian2.ZERO

scaleNumber

Get or set the zoom size of the text, with a default value of 1, which means no scaling.

Default Value:
1.0

showBackgroundBoolean

Get or set whether to display a text background box.

Default Value:
false

textFieldObject

Retrieve or set the text content of the text label from which field of the attribute.