new ol.style.Icon(opt_options) experimental
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
Extends
Methods
-
getAnchor(){Array.<number>} experimental
src/ol/style/iconstyle.js, line 189 -
Returns:
Anchor.
-
getImage(pixelRatio){Image} experimental
src/ol/style/iconstyle.js, line 235 -
Name Type Description pixelRatio
number Pixel ratio.
Returns:
Image element.
-
getOpacity(){number} inherited experimental
src/ol/style/imagestyle.js, line 75 -
Returns:
Opacity.
-
getOrigin(){Array.<number>} experimental
src/ol/style/iconstyle.js, line 277 -
Returns:
Origin.
-
getRotateWithView(){boolean} inherited experimental
src/ol/style/imagestyle.js, line 84 -
Returns:
Rotate with map.
-
getRotation(){number} inherited experimental
src/ol/style/imagestyle.js, line 93 -
Returns:
Rotation.
-
getScale(){number} inherited experimental
src/ol/style/imagestyle.js, line 102 -
Returns:
Scale.
-
getSize(){ol.Size} experimental
src/ol/style/iconstyle.js, line 317 -
Returns:
Size.
-
getSnapToPixel(){boolean} inherited experimental
src/ol/style/imagestyle.js, line 111 -
Returns:
Snap to pixel?
-
getSrc(){string|undefined} experimental
src/ol/style/iconstyle.js, line 308 -
Returns:
Image src.
-
setRotation(rotation) inherited experimental
src/ol/style/imagestyle.js, line 197 -
Set the rotation.
Name Type Description rotation
number Rotation.
-
setScale(scale) inherited experimental
src/ol/style/imagestyle.js, line 208 -
Set the scale.
Name Type Description scale
number Scale.