Abstractoptions to configure the provider
OptionalidThe id of the Provider
Optionalmargindefault tile margin.
OptionalnameThe name of the Provider.
Add an EventListener to the provider. Valid events: "clear" and "error"
The detail property of the Event gives additional information about the event. detail.provider is a reference to the provider onto which the event was dispatched and is set for all events.
A string representing the event type to listen for
the listener function that will be called when an event of the specific type occurs
Optional_c: anyClears all tiles within a specified geographical bounding box.
An array of geographical coordinates [minLon, minLat, maxLon, maxLat]
defining the rectangular area from which tiles will be cleared.
Clears all cached tiles of the provider.
Clears the given tile(s) from the provider's cache.
Optionalbbox: Tile | GeoJSONBBox | Tile[]OptionaltriggerEvents: booleanGet or set configuration options for the provider.
If a string is provided as the first argument, returns the value of the corresponding property. If an object is provided, sets the provider's properties according to the object.
The configuration key as a string to get a value, or an object to set multiple options.
Optionalvalue: any
Optional value to set if a string key is provided.
Get a locally cached tile by quadkey.
the quadkey of the tile
Retrieves cached tiles within a specified bounding box or all cached tiles if no parameters are provided.
If no arguments are passed, all cached tiles are returned.
If a bounding box (bbox) and/or zoom level (zoomlevel) are provided, it filters the cached tiles based on the specified area and zoom level.
Optionalbbox: number[]
An optional array of coordinates defining the bounding box in the format: [minLon, minLat, maxLon, maxLat].
If provided, only tiles within this geographic area will be returned.
Optionalzoomlevel: number
An optional zoom level to filter tiles. If provided, only tiles at the specified zoom level will be returned.
AbstractgetGet a tile by quadkey.
quadkey of the tile
the callback function
the Tile is returned if its already cached locally
Remove an EventListener from the provider. Valid events: "clear" and "error"
A string which specifies the type of event for which to remove an event listener.
The listener function of the event handler to remove from the provider.
Optional_c: anySet the tile margin in pixel.
the tileMargin
The TileProvider is an abstract Provider that serves map data partitioned into Tile instances.