Replace TileClass with typeof ImageTile
This commit is contained in:
@@ -7,10 +7,6 @@ import {createCanvasContext2D} from './dom.js';
|
|||||||
import {listenOnce, unlistenByKey} from './events.js';
|
import {listenOnce, unlistenByKey} from './events.js';
|
||||||
import EventType from './events/EventType.js';
|
import EventType from './events/EventType.js';
|
||||||
|
|
||||||
/**
|
|
||||||
* @typedef {typeof ImageTile} TileClass
|
|
||||||
* @api
|
|
||||||
*/
|
|
||||||
|
|
||||||
class ImageTile extends Tile {
|
class ImageTile extends Tile {
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import {getForProjection as getTileGridForProjection} from '../tilegrid.js';
|
|||||||
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
|
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
|
||||||
* Higher values can increase reprojection performance, but decrease precision.
|
* Higher values can increase reprojection performance, but decrease precision.
|
||||||
* @property {import("./State.js").default} [state] Source state.
|
* @property {import("./State.js").default} [state] Source state.
|
||||||
* @property {import("../ImageTile.js").TileClass} [tileClass] Class used to instantiate image tiles.
|
* @property {typeof import("../ImageTile.js").default} [tileClass] Class used to instantiate image tiles.
|
||||||
* Default is {@link module:ol/ImageTile~ImageTile}.
|
* Default is {@link module:ol/ImageTile~ImageTile}.
|
||||||
* @property {import("../tilegrid/TileGrid.js").default} [tileGrid] Tile grid.
|
* @property {import("../tilegrid/TileGrid.js").default} [tileGrid] Tile grid.
|
||||||
* @property {import("../Tile.js").LoadFunction} [tileLoadFunction] Optional function to load a tile given a URL. The default is
|
* @property {import("../Tile.js").LoadFunction} [tileLoadFunction] Optional function to load a tile given a URL. The default is
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ import {appendParams} from '../uri.js';
|
|||||||
* @property {import("../proj.js").ProjectionLike} projection Projection.
|
* @property {import("../proj.js").ProjectionLike} projection Projection.
|
||||||
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
|
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
|
||||||
* Higher values can increase reprojection performance, but decrease precision.
|
* Higher values can increase reprojection performance, but decrease precision.
|
||||||
* @property {import("../ImageTile.js").TileClass} [tileClass] Class used to instantiate image tiles.
|
* @property {typeof import("../ImageTile.js").default} [tileClass] Class used to instantiate image tiles.
|
||||||
* Default is {@link module:ol/ImageTile~TileClass}.
|
* Default is {@link module:ol/ImageTile~ImageTile}.
|
||||||
* @property {import("../tilegrid/TileGrid.js").default} [tileGrid] Tile grid. Base this on the resolutions,
|
* @property {import("../tilegrid/TileGrid.js").default} [tileGrid] Tile grid. Base this on the resolutions,
|
||||||
* tilesize and extent supported by the server.
|
* tilesize and extent supported by the server.
|
||||||
* If this is not defined, a default grid will be used: if there is a projection
|
* If this is not defined, a default grid will be used: if there is a projection
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import {appendParams} from '../uri.js';
|
|||||||
* @property {import("./WMTSRequestEncoding.js").default|string} [requestEncoding='KVP'] Request encoding.
|
* @property {import("./WMTSRequestEncoding.js").default|string} [requestEncoding='KVP'] Request encoding.
|
||||||
* @property {string} layer Layer name as advertised in the WMTS capabilities.
|
* @property {string} layer Layer name as advertised in the WMTS capabilities.
|
||||||
* @property {string} style Style name as advertised in the WMTS capabilities.
|
* @property {string} style Style name as advertised in the WMTS capabilities.
|
||||||
* @property {import("../ImageTile.js").TileClass} [tileClass] Class used to instantiate image tiles. Default is {@link module:ol/ImageTile~ImageTile}.
|
* @property {typeof import("../ImageTile.js").default} [tileClass] Class used to instantiate image tiles. Default is {@link module:ol/ImageTile~ImageTile}.
|
||||||
* @property {number} [tilePixelRatio=1] The pixel ratio used by the tile service.
|
* @property {number} [tilePixelRatio=1] The pixel ratio used by the tile service.
|
||||||
* For example, if the tile service advertizes 256px by 256px tiles but actually sends 512px
|
* For example, if the tile service advertizes 256px by 256px tiles but actually sends 512px
|
||||||
* by 512px images (for retina/hidpi devices) then `tilePixelRatio`
|
* by 512px images (for retina/hidpi devices) then `tilePixelRatio`
|
||||||
|
|||||||
Reference in New Issue
Block a user