-
Name Type Description fillFill | undefined Fill style.
pointsnumber Number of points for stars and regular polygons. In case of a polygon, the number of points is the number of sides.
radiusnumber Radius of a regular polygon.
radius2number | undefined Second radius to make a star instead of a regular polygon.
anglenumber (defaults to 0) Shape's angle in radians. A value of 0 will have one of the shape's points facing up.
displacementArray.<number> (defaults to [0, 0]) Displacement of the shape in pixels. Positive values will shift the shape right and up.
strokeStroke | undefined Stroke style.
rotationnumber (defaults to 0) Rotation in radians (positive rotation clockwise).
rotateWithViewboolean (defaults to false) Whether to rotate the shape with the view.
scalenumber | Size (defaults to 1) Scale. Unless two dimensional scaling is required a better result may be obtained with appropriate settings for
radiusandradius2.declutterModeDeclutterMode | undefined Declutter mode.
Subclasses
Extends
Methods
-
Clones the style.
Returns:
The cloned style.
-
Get the anchor point in pixels. The anchor determines the center point for the symbolizer.
Returns:
Anchor.
-
Get the angle used in generating the shape.
Returns:
Shape's rotation in radians.
-
Get the declutter mode of the shape
Returns:
Shape's declutter mode
-
Get the displacement of the shape
Returns:
Shape's center displacement
-
Get the fill style for the shape.
Returns:
Fill style.
-
Get the image icon.
Name Type Description pixelRationumber Pixel ratio.
Returns:
Image or Canvas element.
-
Get the symbolizer opacity.
Returns:
Opacity.
-
Get the origin of the symbolizer.
Returns:
Origin.
-
Get the number of points for generating the shape.
Returns:
Number of points for stars and regular polygons.
-
Get the (primary) radius for the shape.
Returns:
Radius.
-
Get the secondary radius for the shape.
Returns:
Radius2.
-
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.
-
Get the stroke style for the shape.
Returns:
Stroke style.
-
Set the displacement.
Name Type Description displacementArray.<number> Displacement.
-
Set the fill style.
Name Type Description fillFill | null Fill style.
-
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 | Size Scale.
-
Set the stroke style.
Name Type Description strokeStroke | null Stroke style.