Represents the JSON structure for a simple fill symbol, used for serializing symbol properties.

interface SimpleFillSymbolJSON {
    color?: number[];
    outline?: {
        color?: number[];
        type?: "simple-line";
        width?: number;
    };
    style?: "none" | "solid";
}

Properties

color?: number[]

The color of the fill, represented as an RGBA array.

outline?: {
    color?: number[];
    type?: "simple-line";
    width?: number;
}

The outline of the symbol.

Type declaration

  • Optionalcolor?: number[]

    The color of the outline, represented as an RGBA array.

  • Optionaltype?: "simple-line"

    Optional type discriminator for autocasting.

  • Optionalwidth?: number

    The width of the outline.

style?: "none" | "solid"

The fill style of the symbol.