Classes
Type Definitions
-
IconOptions{Object}
-
Properties:
Name Type Argument Description srcstring | undefined <optional>
Source URL
anchorstring <optional>
Anchor
'center' , 'top' , 'bottom' , 'left' , 'right' , 'top-left' , 'top-right' , 'bottom-left' , and 'bottom-right'. Defaultbottom.offsetArray.<number> | undefined <optional>
Offset
popupAnchorstring | undefined <optional>
Anchor
'center' , 'top' , 'bottom' , 'left' , 'right' , 'top-left' , 'top-right' , 'bottom-left' , and 'bottom-right'. Defaultbottom.popupOffsetArray.<number> | undefined <optional>
Popup offset
rotationnumber <optional>
Rotation
scalenumber <optional>
Size multiplier. Default
1.sizeArray.<number> <optional>
Only for SVG icons. Format value
[width, height]. For example:[32, 32]. If not specified, it will use size fromviewBoxattribute fromsvgstring <optional>
SVG in string format, only those with
pathtag.opacitynumber <optional>
Opacity
loadedIconImagestring <optional>
Icon image already loaded on maplibre.