Use a unique key for all tile classes
This commit is contained in:
@@ -39,6 +39,8 @@ class ImageTile extends Tile {
|
||||
*/
|
||||
this.src_ = src;
|
||||
|
||||
this.key = src;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {HTMLImageElement|HTMLCanvasElement}
|
||||
@@ -70,13 +72,6 @@ class ImageTile extends Tile {
|
||||
return this.image_;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {string} Key.
|
||||
*/
|
||||
getKey() {
|
||||
return this.src_;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tracks loading or read errors.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user