AbstractCreates a new Tiler. Can only be called by subclasses as Tiler is abstract.
the URL of the tile server. Use the characters x, y and z in braces for placeholders for the x,y,z parameters.
Obtain the current tiles surrounding the last-requested position.
array of 9 tiles, including the current tile and the 8 surrounding it.
For a given Spherical Mercator position and zoom, downloads data if necessary and returns the data at the tile corresponding to that position.
the Spherical Mercator position.
zoom level to use (default 13)
Promise resolving with the given Tile.
Converts the raw data from the server to a custom type of data.
By default, returns a DataTile object containing the Tile and the raw data returned from readTile(), but this can be overridden (e.g. in DemTile the data of the DataTile is a DEM object).
the current tile.
the raw downloaded data.
the DataTile pairing the Tile and the data in the format we want.
AbstractreadAbstract method to read the data from a URL. The placeholders will be replaced with the current actual values.
the URL.
a Promise resolving with arbitrary data.
Sets the zoom.
the zoom to use.
Represents a tiler, capable of delivering Tiles from a given URL.