Add new cacheSize option to ol.source

Option added to:
 - olx.source.BingMapsOptions
 - olx.source.MapQuestOptions
 - olx.source.OSMOptions
 - olx.source.StamenOptions
 - olx.source.TileArcGISRestOptions
 - olx.source.TileImageOptions
 - olx.source.TileJSONOptions
 - olx.source.TileWMSOptions
 - olx.source.VectorTileOptions
 - olx.source.XYZOptions
 - olx.source.WMTSOptions
 - olx.source.ZoomifyOptions
This commit is contained in:
Frederic Junod
2016-02-08 15:10:31 +01:00
parent d5fb6dda49
commit 58d8b290af
13 changed files with 126 additions and 4 deletions
+4 -1
View File
@@ -26,9 +26,12 @@ 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: ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK / 16,
cacheSize: cacheSize,
extent: options.extent,
logo: options.logo,
opaque: options.opaque,