From bf1d804a5e816473c62d248d97574c361ba43814 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Mon, 9 Sep 2013 15:07:05 +0200 Subject: [PATCH] Rename ol.source.DebugTileSource to ol.source.TileDebug --- examples/canvas-tiles.js | 4 ++-- src/objectliterals.jsdoc | 2 +- src/ol/source/debugtilesource.exports | 2 +- src/ol/source/debugtilesource.js | 14 +++++++------- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/canvas-tiles.js b/examples/canvas-tiles.js index 69c60a133f..0a14f225f6 100644 --- a/examples/canvas-tiles.js +++ b/examples/canvas-tiles.js @@ -3,8 +3,8 @@ goog.require('ol.RendererHints'); goog.require('ol.View2D'); goog.require('ol.layer.TileLayer'); goog.require('ol.proj'); -goog.require('ol.source.DebugTileSource'); goog.require('ol.source.OSM'); +goog.require('ol.source.TileDebug'); goog.require('ol.tilegrid.XYZ'); @@ -14,7 +14,7 @@ var map = new ol.Map({ source: new ol.source.OSM() }), new ol.layer.TileLayer({ - source: new ol.source.DebugTileSource({ + source: new ol.source.TileDebug({ projection: 'EPSG:3857', tileGrid: new ol.tilegrid.XYZ({ maxZoom: 22 diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index 11812e8adf..8b1c99598c 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -457,7 +457,7 @@ */ /** - * @typedef {Object} ol.source.DebugTileSourceOptions + * @typedef {Object} ol.source.TileDebugOptions * @property {ol.Extent|undefined} extent Extent. * @property {ol.ProjectionLike} projection Projection. * @property {ol.tilegrid.TileGrid|undefined} tileGrid Tile grid. diff --git a/src/ol/source/debugtilesource.exports b/src/ol/source/debugtilesource.exports index 2c74b974f3..cc26dab6ad 100644 --- a/src/ol/source/debugtilesource.exports +++ b/src/ol/source/debugtilesource.exports @@ -1 +1 @@ -@exportClass ol.source.DebugTileSource ol.source.DebugTileSourceOptions +@exportClass ol.source.TileDebug ol.source.TileDebugOptions diff --git a/src/ol/source/debugtilesource.js b/src/ol/source/debugtilesource.js index 47354b994c..df9f2cf0d1 100644 --- a/src/ol/source/debugtilesource.js +++ b/src/ol/source/debugtilesource.js @@ -1,4 +1,4 @@ -goog.provide('ol.source.DebugTileSource'); +goog.provide('ol.source.TileDebug'); goog.require('goog.dom'); goog.require('goog.dom.TagName'); @@ -84,9 +84,9 @@ ol.DebugTile_.prototype.getImage = function(opt_context) { /** * @constructor * @extends {ol.source.Tile} - * @param {ol.source.DebugTileSourceOptions} options Debug tile options. + * @param {ol.source.TileDebugOptions} options Debug tile options. */ -ol.source.DebugTileSource = function(options) { +ol.source.TileDebug = function(options) { goog.base(this, { extent: options.extent, @@ -102,13 +102,13 @@ ol.source.DebugTileSource = function(options) { this.tileCache_ = new ol.TileCache(); }; -goog.inherits(ol.source.DebugTileSource, ol.source.Tile); +goog.inherits(ol.source.TileDebug, ol.source.Tile); /** * @inheritDoc */ -ol.source.DebugTileSource.prototype.canExpireCache = function() { +ol.source.TileDebug.prototype.canExpireCache = function() { return this.tileCache_.canExpireCache(); }; @@ -116,7 +116,7 @@ ol.source.DebugTileSource.prototype.canExpireCache = function() { /** * @inheritDoc */ -ol.source.DebugTileSource.prototype.expireCache = function(usedTiles) { +ol.source.TileDebug.prototype.expireCache = function(usedTiles) { this.tileCache_.expireCache(usedTiles); }; @@ -124,7 +124,7 @@ ol.source.DebugTileSource.prototype.expireCache = function(usedTiles) { /** * @inheritDoc */ -ol.source.DebugTileSource.prototype.getTile = function(z, x, y) { +ol.source.TileDebug.prototype.getTile = function(z, x, y) { var tileCoordKey = ol.TileCoord.getKeyZXY(z, x, y); if (this.tileCache_.containsKey(tileCoordKey)) { return /** @type {!ol.DebugTile_} */ (this.tileCache_.get(tileCoordKey));