Picture fill symbols can be used to symbolize polygon geometries.

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

interface PictureFillSymbolJson {
    angle?: number;
    contentType?: string;
    height?: number;
    imageData?: string;
    outline?: SimpleLineSymbolJson;
    type: "esriPFS";
    url?: string;
    width?: number;
    xoffset?: number;
    xscale?: number;
    yoffset?: number;
    yscale?: number;
}

Hierarchy (view full)

Properties

angle?: number

Numeric value that defines the number of degrees ranging from 0-360, that a marker symbol is rotated. The rotation is from East in a counter-clockwise direction where East is the 0° axis.

contentType?: string

String value indicating the content type for the image.

height?: number

Numeric value used if needing to resize the symbol. Specify a value in points. If images are to be displayed in their original size, leave this blank.

imageData?: string

String value indicating the base64 encoded data.

Sets the outline of the symbol.

type

The type of symbol. See SymbolJsonType.

url?: string

Relative URL for static layers and full URL for dynamic layers. Access relative URL using http:////images/.

width?: number

Numeric value used if needing to resize the symbol. If images are to be displayed in their original size, leave this blank.

xoffset?: number

Numeric value indicating the offset on the x-axis in pixels.

xscale?: number

Numeric value indicating the scale factor in x direction.

yoffset?: number

Numeric value indicating the offset on the y-axis in pixels.

yscale?: number

Numeric value indicating the scale factor in y direction.