Merge pull request #2531 from fredj/debugtile-cleanup

Remove unneeded ol.DebugTile_#tileCoord_ variable
This commit is contained in:
Frédéric Junod
2014-08-14 10:17:36 +02:00

View File

@@ -21,12 +21,6 @@ ol.DebugTile_ = function(tileCoord, tileGrid) {
goog.base(this, tileCoord, ol.TileState.LOADED);
/**
* @private
* @type {ol.TileCoord}
*/
this.tileCoord_ = tileCoord;
/**
* @private
* @type {number}
@@ -62,8 +56,7 @@ ol.DebugTile_.prototype.getImage = function(opt_context) {
context.textAlign = 'center';
context.textBaseline = 'middle';
context.font = '24px sans-serif';
context.fillText(
this.tileCoord_.toString(), tileSize / 2, tileSize / 2);
context.fillText(this.tileCoord.toString(), tileSize / 2, tileSize / 2);
this.canvasByContext_[key] = context.canvas;
return context.canvas;