Fix tileSizes typedef

This commit is contained in:
mike-000
2022-07-15 15:31:10 +01:00
parent 8dcb78bcd9
commit 13f0eeb795
2 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ const DECIMALS = 5;
* negative because OpenLayers tile coordinates use the top left as the origin.
* @property {number|import("../size.js").Size} [tileSize] Tile size.
* Default is `[256, 256]`.
* @property {Array<import("../size.js").Size>} [tileSizes] Tile sizes. If given, the array length
* @property {Array<number|import("../size.js").Size>} [tileSizes] Tile sizes. If given, the array length
* should match the length of the `resolutions` array, i.e. each resolution can have a different
* tile size.
*/

View File

@@ -34,7 +34,7 @@ import {get as getProjection} from '../proj.js';
* an extent is used as `origin` or `origins`, then the `y` value must be
* negative because OpenLayers tile coordinates use the top left as the origin.
* @property {number|import("../size.js").Size} [tileSize] Tile size.
* @property {Array<import("../size.js").Size>} [tileSizes] Tile sizes. The length of
* @property {Array<number|import("../size.js").Size>} [tileSizes] Tile sizes. The length of
* this array needs to match the length of the `resolutions` array.
*/
@@ -108,7 +108,7 @@ export function createFromCapabilitiesMatrixSet(
const matrixIds = [];
/** @type {!Array<import("../coordinate.js").Coordinate>} */
const origins = [];
/** @type {!Array<import("../size.js").Size>} */
/** @type {!Array<number|import("../size.js").Size>} */
const tileSizes = [];
/** @type {!Array<import("../size.js").Size>} */
const sizes = [];