Classes
Type Definitions
-
LabelOptions{Object}
-
Properties:
Name Type Argument Description classNamestring <optional>
Class name for CSS styling. Default empty.
colorstring <optional>
Label color. Default value '#000000'
backgroundstring <optional>
Label backgroud. The string format is the same than css tag. Default value 'none repeat scroll 0% 0% #ffffff'
fontWeightboolean <optional>
Bold text. Default: false
offsetmodule:maplibre-gl~Offset <optional>
Label offset, in pixels, from the bottom position of icon. Default value for default label is
[-3, -18].showboolean <optional>
Show text. Default value
1.textstring Simple Label text (with no background).
anchormodule:maplibre-gl~PositionAnchor | undefined <optional>
Anchor
'center' , 'top' , 'bottom' , 'left' , 'right' , 'top-left' , 'top-right'.