Remove ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK
This commit is contained in:
@@ -35,12 +35,6 @@ ol.DEFAULT_MIN_ZOOM = 0;
|
||||
ol.DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD = 0.5;
|
||||
|
||||
|
||||
/**
|
||||
* @define {number} Default high water mark.
|
||||
*/
|
||||
ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK = 2048;
|
||||
|
||||
|
||||
/**
|
||||
* @define {number} Default tile size.
|
||||
*/
|
||||
|
||||
@@ -26,12 +26,9 @@ goog.require('ol.source.UrlTile');
|
||||
*/
|
||||
ol.source.VectorTile = function(options) {
|
||||
|
||||
var cacheSize = options.cacheSize !== undefined ?
|
||||
options.cacheSize : ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK / 16;
|
||||
|
||||
goog.base(this, {
|
||||
attributions: options.attributions,
|
||||
cacheSize: cacheSize,
|
||||
cacheSize: options.cacheSize !== undefined ? options.cacheSize : 128,
|
||||
extent: options.extent,
|
||||
logo: options.logo,
|
||||
opaque: options.opaque,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
goog.provide('ol.TileCache');
|
||||
|
||||
goog.require('ol');
|
||||
goog.require('ol.TileRange');
|
||||
goog.require('ol.structs.LRUCache');
|
||||
goog.require('ol.tilecoord');
|
||||
@@ -20,8 +19,7 @@ ol.TileCache = function(opt_highWaterMark) {
|
||||
* @private
|
||||
* @type {number}
|
||||
*/
|
||||
this.highWaterMark_ = opt_highWaterMark !== undefined ?
|
||||
opt_highWaterMark : ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK;
|
||||
this.highWaterMark_ = opt_highWaterMark !== undefined ? opt_highWaterMark : 2048;
|
||||
|
||||
};
|
||||
goog.inherits(ol.TileCache, ol.structs.LRUCache);
|
||||
|
||||
Reference in New Issue
Block a user