| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Extends
Methods
-
Clones the style. The underlying Image/HTMLCanvasElement is not cloned.
Returns:
The cloned style.
-
Get the anchor point in pixels. The anchor determines the center point for the symbolizer.
Returns:
Anchor.
-
Get the icon color.
Returns:
Color.
-
Get the symbolizer opacity.
Returns:
Opacity.
-
Get the origin of the symbolizer.
Returns:
Origin.
-
Determine whether the symbolizer rotates with the map.
Returns:
Rotate with map.
-
Get the symoblizer rotation.
Returns:
Rotation.
-
Get the symbolizer scale.
Returns:
Scale.
-
Get the size of the symbolizer (in pixels).
Returns:
Size.
-
This method is deprecated and always returns false.
- Deprecated
- Yes
Returns:
false.
-
Get the image URL.
Returns:
Image src.
-
Set the anchor point. The anchor determines the center point for the symbolizer.
Name Type Description anchorArray.<number> Anchor.
-
Set the opacity.
Name Type Description opacitynumber Opacity.
-
Set whether to rotate the style with the view.
Name Type Description rotateWithViewboolean Rotate with map.
-
Set the rotation.
Name Type Description rotationnumber Rotation.
-
Set the scale.
Name Type Description scalenumber Scale.
-
This method is deprecated and does nothing.
Name Type Description snapToPixelboolean Snap to pixel?
- Deprecated
- Yes