Overview
This topic discusses the JSON representation of layer objects. This object allows overrides on pop-up content and drawing behavior for individual layers of a web service. When used with a feature collection, this object also contains geographic features and their attributes.
"layers": [
{
"layerDefinition": {. . .},
"featureSet": {. . .},
"popupInfo": {. . .}
}
]
Properties
Property | Details |
---|---|
| A feature set object containing the geometry and attributes of the features in the layer. Used with feature collections only. |
| A number indicating the index position of the layer in the WMS or map service. |
| An array of layer definition objects defining the attribute schema and drawing information for the layer. |
| A string URL to a service that should be used for all queries against the layer. Used with hosted tiled map services on ArcGIS Online when there is an associated feature service that allows for queries. |
| A string URL to a legend graphic for the layer. Used with WMS layers. The URL usually contains a |
| A string containing a unique name for the layer. Used with WMS layers, where it can sometimes be derived from the layer's index position. |
| A user-friendly string title for the layer that can be used in a table of contents. Used with WMS layers. |
| A popup info object defining the pop-up window content for the layer. |