MapLayerSource Class
A source for map layers. These may be catalogued for convenient use by users or applications.
Methods
| Name | Description | |
|---|---|---|
| collectQueryParams(): [key: string]: string | The query parameters actually sent with requests: queryParams overlaid with the deprecated unsavedQueryParams |
|
| toJSON(): Omit<MapLayerSourceProps, "formatId"> & { formatId: string } | ||
| toLayerSettings(subLayers?: MapSubLayerProps[]): ImageMapLayerSettings | undefined | ||
| validateSource(ignoreCache?: boolean): Promise<MapLayerSourceValidation> | ||
| fromJSON(json: MapLayerSourceProps): MapLayerSource | undefined Static |
Properties
| Name | Type | Description | |
|---|---|---|---|
| baseMap | boolean | ||
| formatId | string | ||
| name | string | ||
| password | string | undefined | ||
| queryParams Accessor | [key: string]: string | undefined | Non-secret query parameters appended to every request made for the source, persisted as part of the JSON | |
| queryParams Setter | queryParams(value: [key: string]: string): void | ||
| savedQueryParams | [key: string]: string | undefined | Former name of queryParams, which stores the value; retained as the backing field so existing subclasses | Deprecated |
| transparentBackground | boolean | undefined | ||
| unsavedQueryParams | [key: string]: string | undefined | List of query parameters that will get appended to the source URL that should not be be persisted part of the JSON representation. | Deprecated |
| url | string | ||
| userName | string | undefined |
Defined in
Last Updated: 03 December, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.