ESM
import { loadLayer } from "@arcgis/charts-components/utils/layer/index.js";Functions
loadLayer
Function
Loads the layer. Generates raster info if it's an ImageryLayer or an ImageryTileLayer.
- Signature
-
loadLayer (layer: Layer | SupportedLayer | SupportedRasterLayer, abortSignal?: AbortSignal): Promise<void>
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| layer | The layer | | |
| abortSignal | Optional abort signal to cancel the request | |