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