Contains information about an attribute field. This field could come from a feature collection or a single layer in a map service. Used in layerDefinition.

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

interface FieldJson {
    alias?: string;
    domain?: DomainJson;
    editable?: boolean;
    exactMatch?: boolean;
    length?: number;
    name: string;
    nullable?: boolean;
    type?: FieldJsonType;
    visible?: boolean;
}

Properties

alias?: string

The field alias (human-readable name).

domain?: DomainJson

A domain object that provides the attribute domain information for the field, if a domain exists.

editable?: boolean

Whether this field is editable.

exactMatch?: boolean

A Boolean defining whether or not the field is an exact match.

length?: number

A number defining how many characters are allowed in a string field.

name: string

A string defining the field name.

nullable?: boolean

Whether this field can have a null value.

Type of the Field. See FieldJsonType.

visible?: boolean

.