-
new ImageStyle(options)
-
Name Type Description opacitynumber Opacity.
rotateWithViewboolean If the image should get rotated with the view.
rotationnumber Rotation.
scalenumber | Size Scale.
displacementArray.<number> Displacement.
declutterModeDeclutterMode Declutter mode:
declutter,obstacle,none.
Subclasses
Methods
-
clone(){ImageStyle}
-
Clones the style.
Returns:
The cloned style.
-
getDeclutterMode(){DeclutterMode}
-
Get the declutter mode of the shape
Returns:
Shape's declutter mode
-
getDisplacement(){Array.<number>}
-
Get the displacement of the shape
Returns:
Shape's center displacement
-
getOpacity(){number}
-
Get the symbolizer opacity.
Returns:
Opacity.
-
getRotateWithView(){boolean}
-
Determine whether the symbolizer rotates with the map.
Returns:
Rotate with map.
-
getRotation(){number}
-
Get the symoblizer rotation.
Returns:
Rotation.
-
getScale(){number | Size}
-
Get the symbolizer scale.
Returns:
Scale.
-
setDisplacement(displacement)
-
Set the displacement.
Name Type Description displacementArray.<number> Displacement.
-
setOpacity(opacity)
-
Set the opacity.
Name Type Description opacitynumber Opacity.
-
setRotateWithView(rotateWithView)
-
Set whether to rotate the style with the view.
Name Type Description rotateWithViewboolean Rotate with map.
-
setRotation(rotation)
-
Set the rotation.
Name Type Description rotationnumber Rotation.
-
setScale(scale)
-
Set the scale.
Name Type Description scalenumber | Size Scale.