layer

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.

Properties

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 service item.
featureSet A featureSet object containing the geometry and attributes of the features in the layer. Used with feature collections only.
field Information about each field in a layer. Used with feature collections.
id A string indicating the index position of the layer in the map service or feature collection.
layerDefinition The layerDefinition object defines the attribute schema and drawing information for the layer.
layerUrl 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.
maxScale Represents the maximum scale at which the layer definition will be applied.
minScale Represents the minimum scale at which the layer definition will be applied.
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 Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend.
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.

Feedback on this topic?