From 681c3169c12d5a072457d10565d771cbe14414a3 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Thu, 21 Mar 2019 18:50:03 +0100 Subject: [PATCH] Add zDirection memeber to the baes class, for type checking --- src/ol/source/Tile.js | 8 ++++++++ src/ol/source/Zoomify.js | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ol/source/Tile.js b/src/ol/source/Tile.js index 024a94ac46..0d66af54b8 100644 --- a/src/ol/source/Tile.js +++ b/src/ol/source/Tile.js @@ -105,6 +105,14 @@ class TileSource extends Source { */ this.tileOptions = {transition: options.transition}; + /** + * zDirection hint, read by the renderer. Indicates 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. + * @type {number=} + */ + this.zDirection; } /** diff --git a/src/ol/source/Zoomify.js b/src/ol/source/Zoomify.js index a3a997062e..4baefa3bba 100644 --- a/src/ol/source/Zoomify.js +++ b/src/ol/source/Zoomify.js @@ -258,7 +258,7 @@ class Zoomify extends TileImage { }); /** - * @type {number|undefined} + * @inheritDoc */ this.zDirection = options.zDirection;