Skip to content

Interface

Properties

PropertyTypeNotes
idany

A unique identifying string for the layer.

itemIdstring

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

layerTypestring

Indicates the layer type

maxScalenumber

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

minScalenumber

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

namestring

Layer name

opacitynumber

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

showLegendboolean

Boolean property indicating whether to display in the legend.

titlestring

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

typestring

Deprecated, use layerType instead.

urlstring

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

visibilityboolean

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

id

Interface Property

itemId

optional
Interface Property

layerType

Interface Property

maxScale

optional
Interface Property

minScale

optional
Interface Property

name

optional
Interface Property

opacity

optional
Interface Property

showLegend

optional
Interface Property

title

optional
Interface Property

type

optional
Interface Property

url

optional
Interface Property

visibility

optional
Interface Property

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