Make tile cache smaller and screen size dependant

This commit is contained in:
ahocevar
2019-01-21 22:35:48 +01:00
parent a5d93117ed
commit b6d115d868
13 changed files with 25 additions and 13 deletions

View File

@@ -50,7 +50,7 @@ const TOS_ATTRIBUTION = '<a class="ol-attribution-bing-tos" ' +
/**
* @typedef {Object} Options
* @property {number} [cacheSize=2048] Cache size.
* @property {number} [cacheSize] Tile cache size. Default is twice as many tiles as a fullscreen map needs.
* @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/.