Fix ol.source.CartoDB goog.base params

This commit is contained in:
Frederic Junod
2016-04-01 09:31:33 +02:00
parent 13a0eb4ca7
commit 3f0de09dd7

View File

@@ -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);