Stroke style for vector features.

interface StrokeStyle {
    color?: ColorRepresentation;
    depthTest?: boolean;
    lineWidth?: number;
    lineWidthUnits?: LineWidthUnit;
    opacity?: number;
    renderOrder?: number;
}

Hierarchy (view full)

Properties

The color of the line.

DEFAULT_LINE_COLOR

depthTest?: boolean

Determine if depth test is enabled.

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_LINE_WIDTH

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).

opacity?: number

The opacity of the style.

1
renderOrder?: number

The render order of objects with this style.

Note: this value is relative to the host entity's own render order. For example, if a feature has a render order of 3, and the entity has a render order of 10, then the actual render order of the displayed mesh will be 13.