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

View File

@@ -14,10 +14,31 @@ goog.require('ol.source.XYZ');
* @api
*/
ol.source.CartoDB = function(options) {
/**
* @type {string}
* @private
*/
this.account_ = options.account;
/**
* @type {string}
* @private
*/
this.mapId_ = options.map || '';
/**
* @type {Object}
* @private
*/
this.config_ = options.config || {};
/**
* @type {Object.<string, Object>}
* @private
*/
this.templateCache_ = {};
delete options.map;
goog.base(this, options);
this.initializeMap_();