diff --git a/examples/xyz-esri-4326-512.js b/examples/xyz-esri-4326-512.js index 2704012ce4..ac6d8f850b 100644 --- a/examples/xyz-esri-4326-512.js +++ b/examples/xyz-esri-4326-512.js @@ -25,7 +25,7 @@ var map = new ol.Map({ attributions: [attribution], maxZoom: 16, projection: projection, - tileSize: 512, + tileSize: tileSize, tileUrlFunction: function(tileCoord) { return urlTemplate.replace('{z}', (tileCoord[0] - 1).toString()) .replace('{x}', tileCoord[1].toString()) diff --git a/externs/olx.js b/externs/olx.js index 8e9cf44973..3d8444a6ca 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. If not + * specified, `extent` or `origins` must be provided. * @type {ol.Coordinate|undefined} * @api stable */ @@ -6156,9 +6158,11 @@ 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. If not + * specified, `extent` or `origin` must be provided. * @type {Array.