new ol.style.Icon(opt_options) experimental
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
Extends
Methods
-
getAnchor(){Array.<number>} experimental
src/ol/style/iconstyle.js, line 204 -
Returns:
Anchor.
-
getImage(pixelRatio){Image} experimental
src/ol/style/iconstyle.js, line 251 -
Get the image icon.
Name Type Description pixelRatio
number Pixel ratio.
Returns:
Image element.
-
getOpacity(){number} inherited experimental
src/ol/style/imagestyle.js, line 76 -
Get the symbolizer opacity.
Returns:
Opacity.
-
getOrigin(){Array.<number>} experimental
src/ol/style/iconstyle.js, line 293 -
Returns:
Origin.
-
getRotateWithView(){boolean} inherited experimental
src/ol/style/imagestyle.js, line 86 -
Determine whether the symbolizer rotates with the map.
Returns:
Rotate with map.
-
getRotation(){number} inherited experimental
src/ol/style/imagestyle.js, line 96 -
Get the symoblizer rotation.
Returns:
Rotation.
-
getScale(){number} inherited experimental
src/ol/style/imagestyle.js, line 106 -
Get the symbolizer scale.
Returns:
Scale.
-
getSize(){ol.Size} experimental
src/ol/style/iconstyle.js, line 334 -
Returns:
Size.
-
getSnapToPixel(){boolean} inherited experimental
src/ol/style/imagestyle.js, line 116 -
Determine whether the symbolizer should be snapped to a pixel.
Returns:
The symbolizer should snap to a pixel.
-
getSrc(){string|undefined} experimental
src/ol/style/iconstyle.js, line 325 -
Get the image URL.
Returns:
Image src.
-
setRotation(rotation) inherited experimental
src/ol/style/imagestyle.js, line 201 -
Set the rotation.
Name Type Description rotation
number Rotation.
-
setScale(scale) inherited experimental
src/ol/style/imagestyle.js, line 212 -
Set the scale.
Name Type Description scale
number Scale.