Remove unneeded ol.DebugTile_#tileCoord_ variable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user