Update description for zDirection
This commit is contained in:
@@ -113,10 +113,9 @@ export class CustomTile extends ImageTile {
|
||||
* @property {number} [transition] Duration of the opacity transition for rendering.
|
||||
* To disable the opacity transition, pass `transition: 0`.
|
||||
* @property {number} [tileSize=256] Tile size. Same tile size is used for all zoom levels.
|
||||
* @property {number} [zDirection] Indicate which resolution should be used
|
||||
* by a renderer if the views resolution does not match any resolution of the tile source.
|
||||
* If 0, the nearest resolution will be used. If 1, the nearest lower resolution
|
||||
* will be used. If -1, the nearest higher resolution will be used.
|
||||
* @property {number|import("../array.js").NearestDirectionFunction} [zDirection=0]
|
||||
* Choose whether to use tiles with a higher or lower zoom level when between integer
|
||||
* zoom levels. See {@link module:ol/tilegrid/TileGrid~TileGrid#getZForResolution}.
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -272,7 +271,7 @@ class Zoomify extends TileImage {
|
||||
});
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @type {number|import("../array.js").NearestDirectionFunction}
|
||||
*/
|
||||
this.zDirection = options.zDirection;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user