Adjust tile cache size when too small

This commit is contained in:
ahocevar
2019-03-12 00:19:13 +01:00
parent c0d4cdbabf
commit 0f217392d7
12 changed files with 33 additions and 11 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ const TOS_ATTRIBUTION = '<a class="ol-attribution-bing-tos" ' +
/**
* @typedef {Object} Options
* @property {number} [cacheSize] Tile cache size. Default is four times as many tiles as a fullscreen map needs.
* @property {number} [cacheSize] Tile cache size. The default depends on the screen size. Will increase if too small.
* @property {boolean} [hidpi=false] If `true` hidpi tiles will be requested.
* @property {string} [culture='en-us'] Culture code.
* @property {string} key Bing Maps API key. Get yours at http://www.bingmapsportal.com/.