An object that defines the attribute schema and drawing information for a layer drawn using client-side graphics.

Referenced by: Annotation Layer (ArcGISAnnotationLayer), Catalog Layer (CatalogLayer), CSV Layer (CSV), Dimension Layer (ArcGISDimensionLayer), Feature Layer (ArcGISFeatureLayer), Footprint Layer (FootprintLayer), GeoJSON Layer (GeoJSON), Knowledge Graph Sub Table (KnowledgeGraphSubTable), KnowledgeGraph Sub Layer (KnowledgeGraphSubLayer), layer, Link Chart Aggregation Layer (LinkChartAggregationLayer), Link Chart Sub Layer (LinkChartSubLayer), Map Service Layer (ArcGISMapServiceLayer), OGC Feature Layer, Oriented Imagery Layer (OrientedImageryLayer), Parquet Layer (ParquetLayer), Stream Layer (ArcGISStreamLayer), Subtype Group Layer (SubtypeGroupLayer), Subtype Group Table (SubtypeGroupTable), Subtype Layer (SubtypeLayer), Subtype Table (SubtypeTable), table, Web Feature Service Layer (WFS)

Properties

PropertyDetails
allowGeometryUpdatesBoolean value indicating whether the geometry of the features in the layer can be edited.
barrierWeightOptional weight of features in AnnotationLayers and DimensionLayers when considered as barriers to labeling. If not set but required, the default value is assumed to be High.
Valid values:
  • High
  • Low
  • Medium
  • None
capabilitiesA comma separated list of supported capabilities, e.g. Query, Query,Sync, Query,Editing.
copyrightTextString value for the copyright text information for the layer.
currentVersionNumeric value indicating the server version of the layer.
dataSeriesInfos[]An array of objects that define data series info configurations for the layer. A data series describes a series of fields that represent a sequence of related data points over time or other dimensions. Client applications can use the information in a data series info to generate expressions for renderers, labels, popups, charts, or for other representations of the data to display in the web map. These may be defined and referenced by name in client applications for use in various contexts.
Array of items of the following types:
defaultVisibilityBoolean value indicating whether the layer’s visibility is turned on.
definitionEditorStores interactive filters.
definitionExpressionSQL-based definition expression string that narrows the data to be displayed in the layer.
Must be one of the following values:
  • String
  • Null
definitionGeometryAn extent object used to filter features for StreamLayer. Only features that intersect the extent are displayed.
descriptionString value of the layer as defined in the map service.
disableDisplayFilterWhen true, ignores the display filter defined on the layer by the displayFilterInfo property.
displayFieldA string value that summarizes the feature.
displayFilterInfoDisplay filters provide information about which features should be rendered on the display.
drawingInfoContains the drawing and labeling information.
extentAn object defining the rectangular area.
Must be one of the following values:
featureReductionAn object defining how to aggregate dense data to clusters or bins. This is a visualization-only feature intended solely for reducing the visual complexity of many overlapping features to a few aggregate features that communicate patterns of density. This is not intended to be used for analytical purposes.
fieldConfigurations[]An array of fieldConfiguration objects that define configuration for fields within a layer, including how to format date, time and number fields. Support for fieldConfigurations is currently limited to feature service-backed feature layers, oriented imagery layers, catalog footprint layers, subtype layers, subtype tables and tables. Support for additional layer types is planned for future releases.
fieldOverrides[]The layer-specific overrides of field properties. Used by SubtypeGroupLayer to modify field information for each subtype. Any field missing from this array should be hidden.
fields[]An array of field objects containing information about the attribute fields for the feature collection or layer.
floorInfoContains floor-awareness information for the layer.
geometryEncodingThe encoding format used to store geometries in the Parquet files. Applicable to ParquetLayer only.
geometryTypeA string defining the type of geometry. Possible geometry types are: esriGeometryPoint, esriGeometryMultipoint, esriGeometryPolyline, esriGeometryPolygon, and esriGeometryEnvelope.
globalIdFieldThe unique identifier for a feature or table row within a geodatabase.
hasAttachmentsIndicates whether attachments should be loaded for the layer.
hasMBoolean value indicating whether layer has M values.
hasStaticDataBoolean value indicating whether data changes. True if it does not.
hasZBoolean value indicating whether layer has Z values.
htmlPopupTypeString value indicating the HTML popup type.
Valid values:
  • esriServerHTMLPopupTypeAsHTMLText
  • esriServerHTMLPopupTypeAsURL
  • esriServerHTMLPopupTypeNone
idThe identifier assigned to the layer.
isDataVersionedBoolean value indicating whether the data is versioned.
maxRecordCountNumeric value indicating tbe maximum number of records that will be returned at once for a query.
maxScaleInteger property used to determine the maximum scale at which the layer is displayed.
minScaleInteger property used to determine the minimum scale at which the layer is displayed.
nameContains a unique name for the layer that can be displayed in a legend.
objectIdFieldIndicates the name of the object ID field in the dataset.
orderBy[]An array of orderByField objects specifying the feature display order. Features can be sorted in ascending or descending order of a numeric or date field only. If ascending, features with smaller values will be drawn on top of features with larger values. For date values, ascending order means features with older dates will be drawn on top of features with recent dates. If descending, the sort behavior is reversed. When this property is not defined, features are displayed in the order in which they are received by the client.
overrideSymbolsDictates whether a client can support having an end user modify symbols on individual features.
rangeInfos[]Indicates range information
sourceAn object indicating the layerDefinition’s layer source.
spatialReferenceAn object containing the WKID or WKT identifying the spatial reference of the layer’s geometry.
supportedQueryFormatsString value indicating the output formats that are supported in a query.
supportsAdvancedQueriesBoolean value indicating whether the layer supports orderByFields in a query operation.
supportsAttachmentsByUploadIdBoolean value indicating whether the layer supports uploading attachments with the Uploads operation. This can then be used in the Add Attachment and Update Attachment operations.
supportsCalculateBoolean value indicating whether the layer supports the Calculate REST operation when updating features.
supportsRollbackOnFailureParameterBoolean value indicating whether the layer supports rolling back edits made on a feature layer if some of the edits fail.
supportsStatisticsBoolean value indicating whether feature layer query operations support statistical functions.
supportsValidateSqlBoolean value indicating whether the validateSQL operation is supported across a feature service layer.
templates[]A property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types.
timeInfoAn object that defines properties to enable time on a layer or table. Refer to the individual layerDefinition properties to see which layer types support this.
typeIndicates whether the layerDefinition applies to a Feature Layer or a Table. For offline data, the layerDefinition can also apply to an Annotation or Dimension Layer.
Valid values:
  • Feature Layer
  • Table
typeIdFieldContains the name of the field holding the type ID for the features.
types[]Contains information about an attribute field.
visibilityFieldString value indicating the attribute field that is used to control the visibility of a feature. If applicable, when rendering a feature the client should use this field to control visibility. The field’s values are 0 = do not display, 1 = display.

Example

{
"drawingInfo": {
"renderer": {
"rotationType": "geographic",
"rotationExpression": "[AZIMUTH]",
"visualVariables": [
{
"type": "rotationInfo",
"rotationType": "geographic",
"field": "AZIMUTH"
}
],
"type": "simple",
"label": "renderer label",
"description": "renderer description",
"symbol": {
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"type": "esriPMS",
"url": "9c4163ed7e32b5b36721bd9b34190ae4",
"imageData": "...",
"contentType": "image/png",
"width": 60,
"height": 60
}
},
"labelingInfo": [
{
"labelExpression": "[AZIMUTH]",
"useCodedValues": true,
"maxScale": 0,
"minScale": 0,
"labelPlacement": "esriServerPointLabelPlacementAboveRight",
"symbol": {
"color": [
0,
0,
0,
255
],
"horizontalAlignment": "center",
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"text": "",
"rotated": false,
"kerning": true,
"font": {
"size": 13.333333333333332,
"style": "normal",
"weight": "normal",
"family": "serif"
},
"type": "esriTS"
}
}
]
},
"fieldConfigurations": [
{
"name": "install_date",
"alias": "Date of Installation",
"fieldFormat": {
"type": "date-time",
"dateStyle": "short",
"timeStyle": "medium"
}
},
{
"name": "hr_rate",
"alias": "Hourly Rate",
"fieldFormat": {
"type": "number",
"style": "decimal",
"maximumFractionDigits": 2,
"useGrouping": "always"
}
}
]
}