Improved documentation
This commit is contained in:
@@ -303,7 +303,7 @@ ol.source.TileImage.prototype.handleTileChange_ = function(event) {
|
||||
|
||||
/**
|
||||
* Sets whether to render reprojection edges or not (usually for debugging).
|
||||
* @param {boolean} render
|
||||
* @param {boolean} render Render the edges.
|
||||
* @api
|
||||
*/
|
||||
ol.source.TileImage.prototype.setRenderReprojectionEdges = function(render) {
|
||||
@@ -317,8 +317,15 @@ ol.source.TileImage.prototype.setRenderReprojectionEdges = function(render) {
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.proj.ProjectionLike} projection
|
||||
* @param {ol.tilegrid.TileGrid} tilegrid
|
||||
* Sets the tile grid to use when reprojecting the tiles to the given
|
||||
* projection instead of the default tile grid for the projection.
|
||||
*
|
||||
* This can be useful when the default tile grid cannot be created
|
||||
* (e.g. projection has no extent defined) or
|
||||
* for optimization reasons (custom tile size, resolutions, ...).
|
||||
*
|
||||
* @param {ol.proj.ProjectionLike} projection Projection.
|
||||
* @param {ol.tilegrid.TileGrid} tilegrid Tile grid to use for the projection.
|
||||
* @api
|
||||
*/
|
||||
ol.source.TileImage.prototype.setTileGridForProjection =
|
||||
|
||||
@@ -98,7 +98,7 @@ ol.source.Tile.prototype.canExpireCache = function() {
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.proj.Projection} projection
|
||||
* @param {ol.proj.Projection} projection Projection.
|
||||
* @param {Object.<string, ol.TileRange>} usedTiles Used tiles.
|
||||
*/
|
||||
ol.source.Tile.prototype.expireCache = function(projection, usedTiles) {
|
||||
@@ -110,7 +110,7 @@ ol.source.Tile.prototype.expireCache = function(projection, usedTiles) {
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.proj.Projection} projection
|
||||
* @param {ol.proj.Projection} projection Projection.
|
||||
* @param {number} z Zoom level.
|
||||
* @param {ol.TileRange} tileRange Tile range.
|
||||
* @param {function(ol.Tile):(boolean|undefined)} callback Called with each
|
||||
@@ -231,7 +231,7 @@ ol.source.Tile.prototype.getTileCacheForProjection = function(projection) {
|
||||
|
||||
|
||||
/**
|
||||
* @return {number}
|
||||
* @return {number} Tile pixel ratio.
|
||||
*/
|
||||
ol.source.Tile.prototype.getTilePixelRatio = function() {
|
||||
return this.tilePixelRatio_;
|
||||
|
||||
Reference in New Issue
Block a user