ILayer

Interface

Properties

PropertyTypeNotes
any

A unique identifying string for the layer.

itemId
 optional 
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

maxScale
 optional 
number

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

minScale
 optional 
number

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

name
 optional 
string

Layer name

opacity
 optional 
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 
boolean

Boolean property indicating whether to display in the legend.

title
 optional 
string

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

type
 optional 
string

Deprecated, use layerType instead.

url
 optional 
string

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

visibility
 optional 
boolean

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

id

id: any

A unique identifying string for the layer.

itemId optional

itemId: string

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

layerType

layerType: string

Indicates the layer type

maxScale optional

maxScale: number

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

minScale optional

minScale: number

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

name optional

name: string

Layer name

opacity optional

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

showLegend: boolean

Boolean property indicating whether to display in the legend.

title optional

title: string

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

type optional

type: string

Deprecated, use layerType instead.

url optional

url: string

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

visibility optional

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.