A field object contains information about an attribute field. This field can come from a feature collection or a single layer in a map service. This is used in layerDefinition.
Properties
Property | Details |
---|---|
alias | A string defining the field alias. |
domain | A domain object, defined using the syntax of the ArcGIS REST API. This provides the attribute domain information for the field, if a domain exists. |
editable | A Boolean defining whether this field is editable. |
length | The number of characters that are allowed in a string field. |
name | A string defining the field name. |
nullable | A Boolean defining whether this field can have a null value. |
type | A string defining the field type. Values: esriFieldTypeBlob | esriFieldTypeDate | esriFieldTypeDouble | esriFieldTypeGeometry | esriFieldTypeGlobalID | esriFieldTypeGUID | esriFieldTypeInteger | esriFieldTypeOID | esriFieldTypeRaster | esriFieldTypeSingle | esriFieldTypeSmallInteger | esriFieldTypeString | esriFieldTypeXML |
Example
{
"name": "IMAGEURL",
"alias": "IMAGEURL",
"type": "esriFieldTypeString",
"length": 255,
"editable": true,
"nullable": true,
"domain": null
}