GeoLeaf Core API - v3.0.0
    Preparing search index...

    Vector fill and stroke style options, engine-agnostic.

    The index signature allows adapters to accept engine-specific style extensions without breaking the contract.

    interface GeoLeafStyleOptions {
        fillColor?: string;
        fillOpacity?: number;
        color?: string;
        weight?: number;
        opacity?: number;
        dashArray?: string;
        lineCap?: string;
        lineJoin?: string;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown

      Forward-compatibility escape hatch for engine-specific options.

    Index

    Properties

    fillColor?: string

    Fill colour (CSS colour string).

    fillOpacity?: number

    Fill opacity. Range: 0 … 1.

    color?: string

    Stroke colour (CSS colour string).

    weight?: number

    Stroke width in pixels.

    opacity?: number

    Stroke opacity. Range: 0 … 1.

    dashArray?: string

    Stroke dash pattern (SVG stroke-dasharray format, e.g. "5, 10").

    lineCap?: string

    SVG stroke-linecap value ("butt", "round", "square").

    lineJoin?: string

    SVG stroke-linejoin value ("miter", "round", "bevel").