A layer object may allow overrides on popup content and drawing behavior for individual layers of a web service. This object also contains geographic features and their attributes when used in a feature collection.

Referenced by: featureCollection, Map Service Layer (ArcGISMapServiceLayer), Tiled Map Service Layer (ArcGISTiledMapServiceLayer)

Properties

PropertyDetails
attributeTableInfoAn attributeTableInfo object defining how the data will be presented in tabular format.
defaultVisibilityDefault visibility of the layers in the map service.
definitionEditorAn object that provides interactive filters.
disablePopupIndicates whether to allow a client to ignore the popups defined on the layer. The popupInfo object could be saved in the map or item.
featureSetA featureSet object containing the geometry and attributes of the features in the layer.
fieldInformation about each field in a layer. Used with feature collections.
idThe layer id, as a numeric value.
layerDefinitionThe layerDefinition object defines the attribute schema and drawing information for the layer.
layerItemIdThe associated query layer’s itemId. Only available when there is a layerUrl. You will see this if popups are configured on it.
layerUrlA URL to a service that should be used for all queries against the layer.
maxScaleA number representing the maximum scale at which the layer will be visible. The number is the scale’s denominator.
minScaleA number representing the minimum scale at which the layer will be visible. The number is the scale’s denominator.
nameThe name of the layer.
nextObjectIdIterates within a featureset. Number objectId value is incremented 1 based on last Object ID defined for the feature in a featureset. Used with feature collections.
parentLayerIdIf working with nested layers, this is the numeric value indicating the layer id of the next layer (parent) directly above the current referenced layer.
popupInfoA popupInfo object defining the popup window content for the layer.
showLegendBoolean value indicating whether to display the layer in the legend. Default value is true.
subLayerInteger value indicating the layer id.
subLayerIds[]If the layer is a parent layer, it will have one or more sub layers included in an array.
titleA user-friendly string title for the layer that can be used in a table of contents.