[ol.TileCache] tile cache size is not 1

This commit is contained in:
Éric Lemoine
2012-06-22 16:53:26 +02:00
parent e748d39680
commit 22f569750f
2 changed files with 19 additions and 7 deletions

View File

@@ -9,13 +9,7 @@ goog.require('goog.structs.LinkedMap');
* @param {number=} opt_size
*/
ol.TileCache = function(opt_size) {
/**
* @constant
* @type {number}
*/
this.size_ = opt_size || 100;
goog.base(this, 1, true /* cache mode */);
goog.base(this, opt_size || 100, true /* cache mode */);
};
goog.inherits(ol.TileCache, goog.structs.LinkedMap);