Add jsdoc tags in ol.source.CartoDB constructor

This commit is contained in:
Frederic Junod
2016-04-01 09:18:57 +02:00
parent fb6353a816
commit 13a0eb4ca7
+21
View File
@@ -14,10 +14,31 @@ goog.require('ol.source.XYZ');
* @api * @api
*/ */
ol.source.CartoDB = function(options) { ol.source.CartoDB = function(options) {
/**
* @type {string}
* @private
*/
this.account_ = options.account; this.account_ = options.account;
/**
* @type {string}
* @private
*/
this.mapId_ = options.map || ''; this.mapId_ = options.map || '';
/**
* @type {Object}
* @private
*/
this.config_ = options.config || {}; this.config_ = options.config || {};
/**
* @type {Object.<string, Object>}
* @private
*/
this.templateCache_ = {}; this.templateCache_ = {};
delete options.map; delete options.map;
goog.base(this, options); goog.base(this, options);
this.initializeMap_(); this.initializeMap_();