ILayer

Interface

Properties

PropertyTypeNotes
any

A unique identifying string for the layer.

string

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

string

Indicates the layer type

number

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

number

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

string

Layer name

number

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

boolean

Boolean property indicating whether to display in the legend.

string

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

string

Deprecated, use layerType instead.

string

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

boolean

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

id

Interface Property
id: any

A unique identifying string for the layer.

itemId

optional
Interface Property
itemId: string

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

layerType

Interface Property
layerType: string

Indicates the layer type

maxScale

optional
Interface Property
maxScale: number

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

minScale

optional
Interface Property
minScale: number

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

name

optional
Interface Property
name: string

Layer name

opacity

optional
Interface Property
opacity: 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
Interface Property
showLegend: boolean

Boolean property indicating whether to display in the legend.

title

optional
Interface Property
title: string

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

type

optional
Interface Property
type: string

Deprecated, use layerType instead.

url

optional
Interface Property
url: string

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

visibility

optional
Interface Property
visibility: boolean

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

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