Fix ol.source.CartoDB goog.base params
This commit is contained in:
@@ -39,8 +39,15 @@ ol.source.CartoDB = function(options) {
|
|||||||
*/
|
*/
|
||||||
this.templateCache_ = {};
|
this.templateCache_ = {};
|
||||||
|
|
||||||
delete options.map;
|
goog.base(this, {
|
||||||
goog.base(this, options);
|
attributions: options.attributions,
|
||||||
|
crossOrigin: options.crossOrigin,
|
||||||
|
logo: options.logo,
|
||||||
|
maxZoom: options.maxZoom !== undefined ? options.maxZoom : 18,
|
||||||
|
minZoom: options.minZoom,
|
||||||
|
projection: options.projection,
|
||||||
|
wrapX: options.wrapX
|
||||||
|
});
|
||||||
this.initializeMap_();
|
this.initializeMap_();
|
||||||
};
|
};
|
||||||
goog.inherits(ol.source.CartoDB, ol.source.XYZ);
|
goog.inherits(ol.source.CartoDB, ol.source.XYZ);
|
||||||
|
|||||||
Reference in New Issue
Block a user