addMapLayerFetchHandler Method @beta
Appends a MapLayerFetchHandler to the pipeline wrapping every map-layer network request issued through MapLayerImageryProvider — tiles, tooltips, capabilities, service metadata, and source validation. Handlers run in registration order (the first registered is the outermost), each deciding whether to manage a request or decline it to the next one; several layers of an application can therefore register their own handler without coordinating. Returns the function that removes the handler.
addMapLayerFetchHandler(handler: MapLayerFetchHandler): () => void
| Parameter | Type | Description |
|---|---|---|
| handler | MapLayerFetchHandler |
Returns - () => void
Defined in
Last Updated: 03 December, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.