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

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;