-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
Tile.js
32 lines (29 loc) · 987 Bytes
/
Tile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
* @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;