From 0d507dcbb0b5bcf8b662006e0ad3be859fd5b46e Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Wed, 25 Mar 2015 16:52:45 +0100 Subject: [PATCH] Clarify when widths need to be configured on a tile grid --- externs/olx.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index 5b3edcd18f..bb863598be 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -6549,8 +6549,11 @@ olx.tilegrid.TileGridOptions.prototype.tileSizes; /** - * Widths in tiles. If given, the array length should match the length of the - * `resolutions` array, i.e. each resolution will have a number of tile columns. + * Number of tile columns that cover the grid's extent for each zoom level. Only + * required when used with a source that has `wrapX` set to `true`, and only + * when the grid's origin differs from the one of the projection's extent. The + * array length has to match the length of the `resolutions` array, i.e. each + * resolution will have a matching entry here. * @type {Array.|undefined} * @api */ @@ -6624,8 +6627,11 @@ olx.tilegrid.WMTSOptions.prototype.tileSizes; /** - * Widths in tiles. If given, the array length should match the length of the - * `resolutions` array, i.e. each resolution will have a number of tile columns. + * Number of tile columns that cover the grid's extent for each zoom level. Only + * required when used with a source that has `wrapX` set to `true`, and only + * when the grid's origin differs from the one of the projection's extent. The + * array length has to match the length of the `resolutions` array, i.e. each + * resolution will have a matching entry here. * @type {Array.|undefined} * @api */