Interface
Properties
| Property | Type | Notes |
|---|---|---|
id | any | A unique identifying string for the layer. |
itemId | string | Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal. |
layerType | string | Indicates the layer type |
maxScale | number | Integer property used to determine the maximum scale at which the layer is displayed. |
minScale | number | Integer property used to determine the minimum scale at which the layer is displayed. |
name | string | Layer name |
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 | boolean | Boolean property indicating whether to display in the legend. |
title | string | A user-friendly string title for the layer that can be used in a table of contents. |
type | string | Deprecated, use layerType instead. |
url | string | The URL to the layer. Not applicable to all layer types. |
visibility | boolean | Boolean property determining whether the layer is initially visible in the web map. |
itemId
itemId: stringOptional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal.
maxScale
maxScale: numberInteger property used to determine the maximum scale at which the layer is displayed.
minScale
minScale: numberInteger property used to determine the minimum scale at which the layer is displayed.
opacity
opacity: numberThe degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.
showLegend
showLegend: booleanBoolean property indicating whether to display in the legend.