From e2da56afa1ff1b3c8d8497f942e2a264e03b7efa Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Tue, 16 Jun 2015 15:20:58 +0200 Subject: [PATCH] Tile grid documentation improvements Using the term 'bottom-left' for origin and origins is misleading, because many developers use -y-1 for the tile url's y in their tile url functions, and the origin really only determines where tile coordinates start to increase from left to right and from bottom to top. --- externs/olx.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/externs/olx.js b/externs/olx.js index 8e9cf44973..39910f962a 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -6148,7 +6148,9 @@ olx.tilegrid.TileGridOptions.prototype.minZoom; /** - * Origin, i.e. the bottom-left corner of the grid. Default is null. + * The tile grid origin, i.e. where the `x` and `y` axes meet (`[z, 0, 0]`). + * Tile coordinates increase from left to right and from bottom to top. Default + * is null. * @type {ol.Coordinate|undefined} * @api stable */ @@ -6156,9 +6158,10 @@ olx.tilegrid.TileGridOptions.prototype.origin; /** - * Origins, i.e. the bottom-left corners of the grid for each zoom level. If - * given, the array length should match the length of the `resolutions` array, - * i.e. each resolution can have a different origin. + * Tile grid origins, i.e. where the `x` and `y` axes meet (`[z, 0, 0]`), for + * each zoom level. If given, the array length should match the length of the + * `resolutions` array, i.e. each resolution can have a different origin. Tile + * coordinates increase from left to right and from bottom to top. * @type {Array.|undefined} * @api stable */