Avoid loading tiles outside the grid extent

This commit is contained in:
Tim Schaub
2021-11-29 10:55:55 -07:00
parent a788c9bd1e
commit 3bf1aef8e2
8 changed files with 86 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ import {toPromise} from '../functions.js';
* @property {boolean} [opaque=false] Whether the layer is opaque.
* @property {import("./State.js").default} [state] The source state.
* @property {number} [tilePixelRatio] Tile pixel ratio.
* @property {boolean} [wrapX=true] Render tiles beyond the antimeridian.
* @property {boolean} [wrapX=false] Render tiles beyond the antimeridian.
* @property {number} [transition] Transition time when fading in new tiles (in miliseconds).
* @property {number} [bandCount=4] Number of bands represented in the data.
*/

View File

@@ -34,7 +34,7 @@ import {scale as scaleSize, toSize} from '../size.js';
* @property {import("../proj.js").ProjectionLike} [projection] Projection.
* @property {import("./State.js").default} [state] State.
* @property {import("../tilegrid/TileGrid.js").default} [tileGrid] TileGrid.
* @property {boolean} [wrapX=true] WrapX.
* @property {boolean} [wrapX=false] WrapX.
* @property {number} [transition] Transition.
* @property {string} [key] Key.
* @property {number|import("../array.js").NearestDirectionFunction} [zDirection=0] ZDirection.