Property Type Notes
layerType "ArcGISMapServiceLayer"

String indicating the layer type.

id Inherited any

A unique identifying string for the layer.

isReference Optional any

This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false).

layers Optional IChildLayer[] | IChildLayer

An array of layer objects defining the styling, geometry, and attribute information for the features.

refreshInterval Optional number

Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled.

thematicGroup Optional IThematicGroup

(Optional) A thematicGroup object used in ArcGISMapServiceLayer layers.

visibleLayers Optional number[] | number

An array of sublayer ids that should appear visible. Used with map service layers that are not tiled.

itemId Optional Inherited string

Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal.

maxScale Optional Inherited number

Integer property used to determine the maximum scale at which the layer is displayed.

minScale Optional Inherited number

Integer property used to determine the minimum scale at which the layer is displayed.

name Optional Inherited string

Layer name

opacity Optional Inherited number

The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.

showLegend Optional Inherited boolean

Boolean property indicating whether to display in the legend.

timeAnimation Optional Inherited boolean

This property is applicable to layers that support time. If 'true', timeAnimation is enabled.

title Optional Inherited string

A user-friendly string title for the layer that can be used in a table of contents.

type Optional Inherited string

Deprecated, use layerType instead.

url Optional Inherited string

The URL to the layer. Not applicable to all layer types.

visibility Optional Inherited boolean

Boolean property determining whether the layer is initially visible in the web map.

Interface defined in packages/arcgis-rest-types/src/webmap.ts:894