new ImageStyle(options)
style/Image.js, line 28
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
Subclasses
Methods
-
Clones the style.
Returns:
The cloned style.
-
getDisplacement(){Array.<number>}
style/Image.js, line 131 -
Get the displacement of the shape
Returns:
Shape's center displacement
-
getOpacity(){number}
style/Image.js, line 87 -
Get the symbolizer opacity.
Returns:
Opacity.
-
getRotateWithView(){boolean}
style/Image.js, line 96 -
Determine whether the symbolizer rotates with the map.
Returns:
Rotate with map.
-
getRotation(){number}
style/Image.js, line 105 -
Get the symoblizer rotation.
Returns:
Rotation.
-
Get the symbolizer scale.
Returns:
Scale.
-
setOpacity(opacity)
style/Image.js, line 219 -
Set the opacity.
Name Type Description opacity
number Opacity.
-
setRotateWithView(rotateWithView)
style/Image.js, line 229 -
Set whether to rotate the style with the view.
Name Type Description rotateWithView
boolean Rotate with map.
-
setRotation(rotation)
style/Image.js, line 239 -
Set the rotation.
Name Type Description rotation
number Rotation.
-
setScale(scale)
style/Image.js, line 248 -
Set the scale.
Name Type Description scale
number | module:ol/size~Size Scale.