Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Part of the Esri web map specification. See http://resources.arcgis.com/en/help/arcgis-web-map-json/.

Hierarchy

Index

Properties

Optional featureSet

featureSet: FeatureSet

A featureSet object containing the geometry and attributes of the features in the layer.Used with feature collections only.

Optional id

id: number

A number indicating the index position of the layer in the WMS or map service.

Optional layerDefinition

layerDefinition: LayerDefinition

An array of LayerDefinition objects defining the attribute schema and drawing information for the layer.

Optional layerUrl

layerUrl: string

A 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. Note that this should NOT be filled out otherwise.

Optional legendUrl

legendUrl: string

A URL to a legend graphic for the layer. This property only exists when used with WMS layers.The URL usually contains a GetLegendGraphic request.

Optional name

name: string

A unique name for the layer. Used with WMS layers, where it can sometimes be derived from the layer's index position.

Optional parentLayerId

parentLayerId: number

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.

Optional popupInfo

popupInfo: PopupInfo

A popupInfo object defining the pop-up window content for the layer.

Optional subLayerIds

subLayerIds: number[]

If the layer is a parent layer, it will have one or more sub layers included in an array.

Optional title

title: string

A user-friendly title for the layer that can be used in a table of contents. Used with WMS layers.