Module: cercaliagl/Icon


Classes

Icon

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'. Default bottom.

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'. Default bottom.

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 from viewBox attribute from , else it will use [24, 24].

svg string <optional>

SVG in string format, only those with tag.

opacity number <optional>

Opacity