For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Class ClientConfig
Index
Constructors
Properties
Accessors
Constructors
constructor
Returns ClientConfig
Properties
OptionalbufferToPixelData
tileCacheSize
tileCacheSize: number = 200
Number of tiles to keep in cache
Accessors
apiHost
- get apiHost(): string
The host currently used for the MapTiler API requests (
api.maptiler.comorapi.maptiler.eu)Returns string
apiKey
- get apiKey(): string
Get the MapTiler Cloud API key
Returns string
- set apiKey(k: string): void
Set the MapTiler Cloud API key
Parameters
- k: string
Returns void
apiURL
- get apiURL(): string
The base URL currently used for the MapTiler API requests (
https://api.maptiler.com/orhttps://api.maptiler.eu/)Returns string
fetch
Get the fetch fucntion
Returns FetchFunction
useEuEndpoints
- get useEuEndpoints(): boolean
Whether the EU-based
api.maptiler.euhost is currently in use instead of the defaultapi.maptiler.comReturns boolean
- set useEuEndpoints(value: boolean): void
Switch between the default
api.maptiler.comhost and the EU-basedapi.maptiler.euhost. Set tofalseto switch back to the default.Parameters
- value: boolean
Returns void
The configuration object definition