Classes
Type Definitions
-
IconOptions{Object}
-
Properties:
Name Type Argument Description src
string | undefined <optional>
Source URL
anchor
string <optional>
Anchor
'center' , 'top' , 'bottom' , 'left' , 'right' , 'top-left' , 'top-right' , 'bottom-left' , and 'bottom-right'
. Defaultbottom
.offset
Array.<number> | undefined <optional>
Offset
popupAnchor
string | undefined <optional>
Anchor
'center' , 'top' , 'bottom' , 'left' , 'right' , 'top-left' , 'top-right' , 'bottom-left' , and 'bottom-right'
. Defaultbottom
.popupOffset
Array.<number> | undefined <optional>
Popup offset
rotation
number <optional>
Rotation
scale
number <optional>
Size multiplier. Default
1
.size
Array.<number> <optional>
Only for SVG icons. Format value
[width, height]
. For example:[32, 32]
. If not specified, it will use size fromviewBox
attribute fromsvg
string <optional>
SVG in string format, only those with
tag. opacity
number <optional>
Opacity