MapLayerRequest Interface @beta
Describes an outgoing map-layer request submitted to the MapLayerFetchHandlers registered via
addMapLayerFetchHandler. Treat it as an immutable value: to change what is sent,
pass a copy with different searchParams or headers to MapLayerFetchRequest, e.g.
fetchRequest({ ...request, headers }). Each handler receives its own copy of the request, and only what it
passes to fetchRequest reaches the wire — a change made in place on a request the handler then declines has
no effect. The target (origin and path) is fixed by us and cannot be changed, so a handler can never
(accidentally or otherwise) reroute a request.
Properties
| Name | Type | Description | |
|---|---|---|---|
| formatId Readonly | string | The id of the map-layer format the request is made for (e.g. | |
| headers Readonly | Headers | The request headers we supply (e.g. | |
| layerProperties Readonly | MapLayerProviderProperties | undefined | The provider-specific properties of the layer's settings (ImageMapLayerSettings.properties), if any; | |
| layerUrl Readonly | string | The URL of the map-layer source this request is made for, as configured on the layer's settings. | |
| searchParams Readonly | URLSearchParams | The complete query-parameter set of the outgoing request — including parameters embedded in the layer's URL | |
| url Readonly | string | The request URL as the provider built it (possibly relative to the document), including its query parameters. |
Defined in
Last Updated: 03 December, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.