Add cacheSize option to olx.source.CartoDBOptions
This commit is contained in:
@@ -6211,6 +6211,7 @@ olx.source.XYZOptions.prototype.wrapX;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{attributions: (olx.source.AttributionOption|undefined),
|
* @typedef {{attributions: (olx.source.AttributionOption|undefined),
|
||||||
|
* cacheSize: (number|undefined),
|
||||||
* crossOrigin: (null|string|undefined),
|
* crossOrigin: (null|string|undefined),
|
||||||
* logo: (string|olx.LogoOptions|undefined),
|
* logo: (string|olx.LogoOptions|undefined),
|
||||||
* projection: ol.proj.ProjectionLike,
|
* projection: ol.proj.ProjectionLike,
|
||||||
@@ -6233,6 +6234,14 @@ olx.source.CartoDBOptions;
|
|||||||
olx.source.CartoDBOptions.prototype.attributions;
|
olx.source.CartoDBOptions.prototype.attributions;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cache size. Default is `2048`.
|
||||||
|
* @type {number|undefined}
|
||||||
|
* @api
|
||||||
|
*/
|
||||||
|
olx.source.CartoDBOptions.prototype.cacheSize;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `crossOrigin` attribute for loaded images. Note that you must provide a
|
* The `crossOrigin` attribute for loaded images. Note that you must provide a
|
||||||
* `crossOrigin` value if you are using the WebGL renderer or if you want to
|
* `crossOrigin` value if you are using the WebGL renderer or if you want to
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ ol.source.CartoDB = function(options) {
|
|||||||
|
|
||||||
goog.base(this, {
|
goog.base(this, {
|
||||||
attributions: options.attributions,
|
attributions: options.attributions,
|
||||||
|
cacheSize: options.cacheSize,
|
||||||
crossOrigin: options.crossOrigin,
|
crossOrigin: options.crossOrigin,
|
||||||
logo: options.logo,
|
logo: options.logo,
|
||||||
maxZoom: options.maxZoom !== undefined ? options.maxZoom : 18,
|
maxZoom: options.maxZoom !== undefined ? options.maxZoom : 18,
|
||||||
|
|||||||
Reference in New Issue
Block a user