Type alias RegularShape

RegularShape: {
    angle?: number;
    displacement?: number[];
    fill?: Fill;
    points: number;
    radius?: number;
    radius1?: number;
    radius2?: number;
    rotateWithView?: boolean;
    rotation?: number;
    stroke?: Stroke;
}

Specify radius for regular polygons, or radius1 and radius2 for stars. See also: https://openlayers.org/en/latest/examples/regularshape.html

Type declaration

  • Optional angle?: number

    Shape's angle in radians. A value of 0 will have one of the shape's point facing up.

  • Optional displacement?: number[]

    Displacement of the shape

  • Optional fill?: Fill

    Fill style.

  • points: number

    Number of points for stars and regular polygons. In case of a polygon, the number of points is the number of sides.

  • Optional radius?: number

    Radius of a regular polygon.

  • Optional radius1?: number

    Outer radius of a star.

  • Optional radius2?: number

    Inner radius of a star.

  • Optional rotateWithView?: boolean

    Whether to rotate the shape with the view.

  • Optional rotation?: number

    Rotation in radians (positive rotation clockwise).

  • Optional stroke?: Stroke

    Stroke style.

Generated using TypeDoc