Remove ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK

This commit is contained in:
Frederic Junod
2016-02-29 14:50:46 +01:00
parent 58d8b290af
commit 9819aa38f5
4 changed files with 16 additions and 13 deletions

View File

@@ -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,