Interface: AbstractMapTextLabelOptions
Defined in: src/sdk/components/map/MapTextLabel.ts:32
Options for a AbstractMapTextLabel.
Extended by
Properties
anchor?
optionalanchor:Readonly<Omit<Float64Array<ArrayBufferLike>,"set"|"sort"|"copyWithin">> |Subscribable<Readonly<Omit<Float64Array<ArrayBufferLike>,"set"|"sort"|"copyWithin">>>
Defined in: src/sdk/components/map/MapTextLabel.ts:37
The anchor point of the label, expressed relative to the width/height of the label. [0, 0] is the top-left
corner, and [1, 1] is the bottom-right corner. Defaults to [0, 0].
bgBorderRadius?
optionalbgBorderRadius:number|Subscribable<number>
Defined in: src/sdk/components/map/MapTextLabel.ts:64
The border radius of the label's background, in pixels. Defaults to 0.
bgColor?
optionalbgColor:string|Subscribable<string>
Defined in: src/sdk/components/map/MapTextLabel.ts:58
The label's background color. Defaults to 'black'.
bgOutlineColor?
optionalbgOutlineColor:string|Subscribable<string>
Defined in: src/sdk/components/map/MapTextLabel.ts:70
The outline color of the label's background. Defaults to 'white'.
bgOutlineWidth?
optionalbgOutlineWidth:number|Subscribable<number>
Defined in: src/sdk/components/map/MapTextLabel.ts:67
The outline width of the label's background, in pixels. Defaults to 0.
bgPadding?
optionalbgPadding:Readonly<Omit<Float64Array<ArrayBufferLike>,"set"|"sort"|"copyWithin">> |Subscribable<Readonly<Omit<Float64Array<ArrayBufferLike>,"set"|"sort"|"copyWithin">>>
Defined in: src/sdk/components/map/MapTextLabel.ts:61
The padding of the label's background, in pixels. Expressed as [top, right, bottom, left]. Defaults to [0, 0, 0, 0].
font?
optionalfont:string|Subscribable<string>
Defined in: src/sdk/components/map/MapTextLabel.ts:40
The font type of the label. Defaults to '' (the default canvas font).
fontColor?
optionalfontColor:string|Subscribable<string>
Defined in: src/sdk/components/map/MapTextLabel.ts:46
The font color of the label. Defaults to 'white'.
fontOutlineColor?
optionalfontOutlineColor:string|Subscribable<string>
Defined in: src/sdk/components/map/MapTextLabel.ts:52
The font outline color of the label. Defaults to 'black'.
fontOutlineWidth?
optionalfontOutlineWidth:number|Subscribable<number>
Defined in: src/sdk/components/map/MapTextLabel.ts:49
The font outline width of the label, in pixels. Defaults to 0.
fontSize?
optionalfontSize:number|Subscribable<number>
Defined in: src/sdk/components/map/MapTextLabel.ts:43
The font size of the label, in pixels. Defaults to 10 pixels.
showBg?
optionalshowBg:boolean|Subscribable<boolean>
Defined in: src/sdk/components/map/MapTextLabel.ts:55
Whether to show the background for the label. Defaults to false.