StrokeStyle: BaseStyle & {
    color?: ColorRepresentation;
    lineWidth?: number;
    lineWidthUnits?: LineWidthUnit;
}

Stroke style for vector features.

Type declaration

  • Optionalcolor?: ColorRepresentation

    The color of the line.

    DEFAULT_LINE_COLOR

  • OptionallineWidth?: number

    The line width. If lineWidthUnits is world, the width is expressed in CRS units (typically meters). Otherwise the line width is expressed in pixels.

    DEFAULT_LINE_WIDTH

  • OptionallineWidthUnits?: LineWidthUnit

    Specifies how the line width is interpreted.If "pixels", the width is expressed in pixels, and if "world", the width is expressed in world units (typically meters).