IMapServiceLayer

Interface

Extends

Properties

Property Type Notes
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).

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.

layerType

String indicating the layer type.

layers Optional IChildLayer[]

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

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.

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.

showLegend Optional Inherited boolean

Boolean property indicating whether to display in the legend.

thematicGroup Optional IThematicGroup

(Optional) A thematicGroup object used in ArcGISMapServiceLayer layers.

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.

visibleLayers Optional number[]

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


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