You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
987 B
33 lines
987 B
|
3 years ago
|
/**
|
||
|
|
* @module ol/layer/Tile
|
||
|
|
*/
|
||
|
|
import BaseTileLayer from './BaseTile.js';
|
||
|
|
import CanvasTileLayerRenderer from '../renderer/canvas/TileLayer.js';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @classdesc
|
||
|
|
* For layer sources that provide pre-rendered, tiled images in grids that are
|
||
|
|
* organized by zoom levels for specific resolutions.
|
||
|
|
* Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}
|
||
|
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
||
|
|
* options means that `title` is observable, and has get/set accessors.
|
||
|
|
*
|
||
|
|
* @template {import("../source/Tile.js").default} TileSourceType
|
||
|
|
* @extends BaseTileLayer<TileSourceType, CanvasTileLayerRenderer>
|
||
|
|
* @api
|
||
|
|
*/
|
||
|
|
class TileLayer extends BaseTileLayer {
|
||
|
|
/**
|
||
|
|
* @param {import("./BaseTile.js").Options<TileSourceType>} [options] Tile layer options.
|
||
|
|
*/
|
||
|
|
constructor(options) {
|
||
|
|
super(options);
|
||
|
|
}
|
||
|
|
|
||
|
|
createRenderer() {
|
||
|
|
return new CanvasTileLayerRenderer(this);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default TileLayer;
|