Make zDirection configurable on tile source

This commit is contained in:
ahocevar
2019-07-30 16:50:01 +02:00
parent 230205c3fd
commit e07ff9c04e
17 changed files with 65 additions and 26 deletions

View File

@@ -24,6 +24,7 @@ import {wrapX, getForProjection as getTileGridForProjection} from '../tilegrid.j
* @property {boolean} [wrapX=true]
* @property {number} [transition]
* @property {string} [key]
* @property {number} [zDirection=0]
*/
@@ -110,9 +111,9 @@ class TileSource extends Source {
* 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=}
* @type {number}
*/
this.zDirection;
this.zDirection = options.zDirection ? options.zDirection : 0;
}
/**