Sources may be configured with a projection, tile grids with an extent

An XYZ tile grid is constructed with an extent defining the bounds of the tile grid.
This commit is contained in:
Tim Schaub
2014-08-18 23:26:36 -06:00
parent e97f79b4ab
commit ee487ca308
5 changed files with 25 additions and 22 deletions

View File

@@ -5092,14 +5092,24 @@ olx.tilegrid.WMTSOptions.prototype.tileSizes;
/**
* @typedef {{maxZoom: (number|undefined),
* minZoom: (number|undefined),
* projection: (ol.proj.ProjectionLike|undefined)}}
* @typedef {{extent: (ol.Extent|undefined),
* maxZoom: (number|undefined),
* minZoom: (number|undefined)}}
* @api
*/
olx.tilegrid.XYZOptions;
/**
* Extent for the tile grid. The origin for an XYZ tile grid is the top-left
* corner of the extent. The zero level of the grid is defined by the
* resolution at which one 256 x 256 tile fits in the provided extent. If not
* provided, the extent of the EPSG:3857 projection is used.
* @type {ol.Extent|undefined}
*/
olx.tilegrid.XYZOptions.prototype.extent;
/**
* Maximum zoom.
* @type {number|undefined}
@@ -5114,13 +5124,6 @@ olx.tilegrid.XYZOptions.prototype.maxZoom;
olx.tilegrid.XYZOptions.prototype.minZoom;
/**
* Projection. Default is `'EPSG:3857'`.
* @type {ol.proj.ProjectionLike|undefined}
*/
olx.tilegrid.XYZOptions.prototype.projection;
/**
* @typedef {{resolutions: !Array.<number>}}
* @api