Interface: MapLocationTextLabelOptions
Defined in: src/sdk/components/map/MapTextLabel.ts:305
Options for a MapLocationTextLabel.
Extends
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].
Inherited from
AbstractMapTextLabelOptions.anchor
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.
Inherited from
AbstractMapTextLabelOptions.bgBorderRadius
bgColor?
optionalbgColor:string|Subscribable<string>
Defined in: src/sdk/components/map/MapTextLabel.ts:58
The label's background color. Defaults to 'black'.
Inherited from
AbstractMapTextLabelOptions.bgColor
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'.
Inherited from
AbstractMapTextLabelOptions.bgOutlineColor
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.
Inherited from
AbstractMapTextLabelOptions.bgOutlineWidth
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].
Inherited from
AbstractMapTextLabelOptions.bgPadding
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).
Inherited from
AbstractMapTextLabelOptions.font
fontColor?
optionalfontColor:string|Subscribable<string>
Defined in: src/sdk/components/map/MapTextLabel.ts:46
The font color of the label. Defaults to 'white'.
Inherited from
AbstractMapTextLabelOptions.fontColor
fontOutlineColor?
optionalfontOutlineColor:string|Subscribable<string>
Defined in: src/sdk/components/map/MapTextLabel.ts:52
The font outline color of the label. Defaults to 'black'.
Inherited from
AbstractMapTextLabelOptions.fontOutlineColor
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.
Inherited from
AbstractMapTextLabelOptions.fontOutlineWidth
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.
Inherited from
AbstractMapTextLabelOptions.fontSize
offset?
optionaloffset:Readonly<Omit<Float64Array<ArrayBufferLike>,"set"|"sort"|"copyWithin">> |Subscribable<Readonly<Omit<Float64Array<ArrayBufferLike>,"set"|"sort"|"copyWithin">>>
Defined in: src/sdk/components/map/MapTextLabel.ts:307
The offset of the label from its projected position, as [x, y] in pixels. Defaults to [0, 0].
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.