Simple fill symbols can be used to symbolize polygon geometries.

See https://developers.arcgis.com/web-map-specification/objects/esriSFS_symbol/.

interface SimpleFillSymbolJson {
    color?: ColorJson;
    outline?: SimpleLineSymbolJson;
    style?:
        | "esriSFSBackwardDiagonal"
        | "esriSFSCross"
        | "esriSFSDiagonalCross"
        | "esriSFSForwardDiagonal"
        | "esriSFSHorizontal"
        | "esriSFSNull"
        | "esriSFSSolid"
        | "esriSFSVertical";
    type: "esriSFS";
}

Hierarchy (view full)

Properties

color?: ColorJson

Color is represented as a four-element array. The four elements represent values for red, green, blue, and alpha in that order. Values range from 0 through 255. If color is undefined for a symbol, the color value is null.

Sets the outline of the fill symbol.

style?:
    | "esriSFSBackwardDiagonal"
    | "esriSFSCross"
    | "esriSFSDiagonalCross"
    | "esriSFSForwardDiagonal"
    | "esriSFSHorizontal"
    | "esriSFSNull"
    | "esriSFSSolid"
    | "esriSFSVertical"

The fill style.

type

The type of symbol. See SymbolJsonType.