Merge tile cache into TileStore

This commit is contained in:
Tom Payne
2012-07-10 18:29:55 +02:00
committed by Tom Payne
parent 5adbd13705
commit b2b9a41be1
2 changed files with 34 additions and 24 deletions

View File

@@ -1,23 +0,0 @@
goog.provide('ol.TileCache');
goog.require('goog.structs.LinkedMap');
/**
* A cache of ol.Tile objects.
* @constructor
* @extends {goog.structs.LinkedMap}
* @param {number=} opt_size
*/
ol.TileCache = function(opt_size) {
goog.base(this, opt_size || 100, true /* cache mode */);
};
goog.inherits(ol.TileCache, goog.structs.LinkedMap);
/**
* @inheritDoc
*/
ol.TileCache.prototype.removeNode = function(node) {
goog.base(this, 'removeNode', node);
node.value.destroy();
};