new RegularShape(options)
| Name | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| options | Options. 
 | ||||||||||||||||||||||||||||||||||
Subclasses
Extends
Methods
- 
    
    Clones the style. Returns:The cloned style.
 
- 
    getAnchor(){Array.<number>}style/RegularShape.js, line 177
- 
    
    Get the anchor point in pixels. The anchor determines the center point for the symbolizer. Returns:Anchor.
 
- 
    getAngle(){number}style/RegularShape.js, line 186
- 
    
    Get the angle used in generating the shape. Returns:Shape's rotation in radians.
 
- 
    
    Get the displacement of the shape Returns:Shape's center displacement
 
- 
    
    Get the fill style for the shape. Returns:Fill style.
 
- 
    getImage(pixelRatio){HTMLCanvasElement|HTMLVideoElement|HTMLImageElement}style/RegularShape.js, line 210
- 
    
    Get the image element for the symbolizer. Name Type Description pixelRationumber Pixel ratio. Returns:Image element.
 
- 
    
    Get the symbolizer opacity. Returns:Opacity.
 
- 
    getOrigin(){Array.<number>}style/RegularShape.js, line 239
- 
    
    Get the origin of the symbolizer. Returns:Origin.
 
- 
    getPoints(){number}style/RegularShape.js, line 248
- 
    
    Get the number of points for generating the shape. Returns:Number of points for stars and regular polygons.
 
- 
    getRadius(){number}style/RegularShape.js, line 257
- 
    
    Get the (primary) radius for the shape. Returns:Radius.
 
- 
    getRadius2(){number|undefined}style/RegularShape.js, line 266
- 
    
    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 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. 
 OpenLayers
 OpenLayers