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)


Property Details
defaultVisibility Default visibility of the layers in the map service.
definitionEditor An object that provides interactive filters.
disablePopup Indicates whether to allow a client to ignore the popups defined on the layer. The popupInfo object could be saved in the map or item.
featureSet A featureSet object containing the geometry and attributes of the features in the layer.
field Information about each field in a layer. Used with feature collections.
id The layer id, as a numeric value.
layerDefinition The layerDefinition object defines the attribute schema and drawing information for the layer.
layerItemId The associated query layer's itemId. Only available when there is a layerUrl. You will see this if popups are configured on it.
layerUrl A URL to a service that should be used for all queries against the layer.
maxScale A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator.
minScale A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator.
name The name of the layer.
nextObjectId Iterates 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.
parentLayerId If working with nested layers, this is the numeric value indicating the layer id of the next layer (parent) directly above the current referenced layer.
popupInfo A popupInfo object defining the popup window content for the layer.
showLegend Boolean value indicating whether to display the layer in the legend. Default value is true.
subLayer Integer 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.
title A user-friendly string title for the layer that can be used in a table of contents.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.