-
Name Type Description options
Icon options
Name Type Description src
string | undefined Source URL
anchor
string Anchor
'center' , 'top' , 'bottom' , 'left' , 'right' , 'top-left' , 'top-right' , 'bottom-left' , and 'bottom-right'
. Defaultbottom
.offset
Array.<number> | undefined Offset
popupAnchor
string | undefined Anchor
'center' , 'top' , 'bottom' , 'left' , 'right' , 'top-left' , 'top-right' , 'bottom-left' , and 'bottom-right'
. Defaultbottom
.popupOffset
Array.<number> | undefined Popup offset
rotation
number Rotation
scale
number Size multiplier. Default
1
.size
Array.<number> Only for SVG icons. Format value
[width, height]
. For example:[32, 32]
. If not specified, it will use size fromviewBox
attribute fromsvg
string SVG in string format, only those with
tag. opacity
number Opacity
Methods
-
Get anchor icon
Returns:
Anchor
-
Get filename. In SVG case it returns an unique hash (for internal purposes)
Returns:
Filename
-
Get height
Returns:
Height
-
Get icon offset.
Returns:
Offset
-
Obtaint opacity
Returns:
Opacity
-
Obtaoin popup anchor
Returns:
PopupAnchor
-
Obtain popup offset
Returns:
Offset
-
Obtaint rotation in degrees
Returns:
Rotation in degrees
-
Obtaint size multiplier
Returns:
Size multiplier
-
Get source url.
Returns:
Source URL
-
Get SVG in string format.
-
Get width
Returns:
Width
-
Name Type Description offset
Array.<number> Offset
-
Set opacity.
Name Type Description opacity
number Opacity.
-
Set rotation in degrees.
Name Type Description rotation
number Rotation in degrees.
-
Set size multiplier
Name Type Description size
number Size multiplier
-
Name Type Description url
string Url