Be more consistent with useTile abstract method

This commit is contained in:
Bruno Binet
2013-03-12 17:58:29 +01:00
parent 76d1a0c30e
commit 86c05b4d21
+3 -4
View File
@@ -109,9 +109,8 @@ ol.source.ImageTileSource.prototype.getTile =
/** /**
* @inheritDoc * @inheritDoc
*/ */
ol.source.ImageTileSource.prototype.useTile = function(tileCoord) { ol.source.ImageTileSource.prototype.useTile = function(tileCoordKey) {
var key = tileCoord.toString(); if (this.tileCache_.containsKey(tileCoordKey)) {
if (this.tileCache_.containsKey(key)) { this.tileCache_.get(tileCoordKey);
this.tileCache_.get(key);
} }
}; };