Classdesc

Set regular shape style for vector features. The resulting shape will be a regular polygon when radius is provided, or a star when radius1 and radius2 are provided.

Param: options

Options.

Api

Hierarchy

Constructors

  • Parameters

    Returns RegularShape

    Classdesc

    Set regular shape style for vector features. The resulting shape will be a regular polygon when radius is provided, or a star when radius1 and radius2 are provided.

    Api

Methods

  • Returns number[]

    Inherit Doc

    Api

  • Get the angle used in generating the shape.

    Returns number

    Shape's rotation in radians.

    Api

  • Get the fill style for the shape.

    Returns Fill

    Fill style.

    Api

  • Parameters

    • pixelRatio: number

    Returns HTMLCanvasElement | ol.style.Image | HTMLVideoElement

    Inherit Doc

    Api

  • Get the symbolizer opacity.

    Returns number

    Opacity.

    Api

  • Returns number[]

    Inherit Doc

    Api

  • Get the number of points for generating the shape.

    Returns number

    Number of points for stars and regular polygons.

    Api

  • Get the (primary) radius for the shape.

    Returns number

    Radius.

    Api

  • Get the secondary radius for the shape.

    Returns number

    Radius2.

    Api

  • Determine whether the symbolizer rotates with the map.

    Returns boolean

    Rotate with map.

    Api

  • Get the symoblizer rotation.

    Returns number

    Rotation.

    Api

  • Get the symbolizer scale.

    Returns number

    Scale.

    Api

  • Returns Size

    Inherit Doc

    Api

  • Determine whether the symbolizer should be snapped to a pixel.

    Returns boolean

    The symbolizer should snap to a pixel.

    Api

  • Get the stroke style for the shape.

    Returns Stroke

    Stroke style.

    Api

  • Set the opacity.

    Parameters

    • opacity: number

      Opacity.

    Returns void

    Api

  • Set the rotation.

    Parameters

    • rotation: number

      Rotation.

    Returns void

    Api

  • Set the scale.

    Parameters

    • scale: number

      Scale.

    Returns void

    Api

Generated using TypeDoc