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

Stroke style for vector features.

Type declaration

  • Optional color?: ColorRepresentation

    The color of the line.

    Default Value

    {@link DEFAULT_LINE_COLOR}
    
  • Optional lineWidth?: 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 Value

    {@link DEFAULT_LINE_WIDTH}
    
  • Optional lineWidthUnits?: 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).

    Default Value

    {@link DEFAULT_LINE_WIDTH_UNITS}