Remove unneeded ol.DebugTile_#tileCoord_ variable

This commit is contained in:
Frederic Junod
2014-08-14 09:43:01 +02:00
parent ff209d8759
commit abc01b5f10
+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;