new cercalia.Icon(opt_options)
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Icon Options
|
Extends
Methods
-
Default icon
Returns:
Return default icon
-
getAnchor(){Array.<number>|undefined}
src/cercalia/icon.js, line 263 -
Returns:
anchor Return icon anchor
-
getAnchorUnits(){string}
src/cercalia/icon.js, line 114 -
Returns:
Anchor Unitspixel
orfraction
.
-
Returns:
Get Class name of object
-
Returns:
Icon Style
-
Returns:
Unique Id.
-
Returns:
Marker.
-
getOpacity(){number}
src/cercalia/icon.js, line 245 -
Returns:
opacity Image opacity.
-
getRotation(){number}
src/cercalia/icon.js, line 189 -
Returns:
Icon rotation (degrees).
-
getSize(){}
src/cercalia/icon.js, line 215 -
Returns:
size
-
getSrc(){string}
src/cercalia/icon.js, line 207 -
Returns:
Image URL
-
setAnchor(anchor)
src/cercalia/icon.js, line 254 -
Set icon anchor
Name Type Description anchor
Anchor.
-
setOpacity(opacity)
src/cercalia/icon.js, line 233 -
Returns the icon image source
Name Type Description opacity
number Opacity.
-
setRotation(rotation)
src/cercalia/icon.js, line 177 -
Apply a rotation, degrees.
Name Type Description rotation
number degrees rotation.
-
setSize(size)
src/cercalia/icon.js, line 223 -
Name Type Description size
Size image source.
-
setSrc(src)
src/cercalia/icon.js, line 198 -
Assign the icon image source
Name Type Description src
string Image URL.