Fix olx.source.CartoDBOptions definition

This commit is contained in:
Frederic Junod
2016-04-01 09:16:56 +02:00
parent 24665747b3
commit fb6353a816
3 changed files with 12 additions and 2 deletions
+9 -1
View File
@@ -6219,7 +6219,7 @@ olx.source.XYZOptions.prototype.wrapX;
* wrapX: (boolean|undefined), * wrapX: (boolean|undefined),
* config: (Object|undefined), * config: (Object|undefined),
* map: (string|undefined), * map: (string|undefined),
* account: (string|undefined)}} * account: string}}
* @api * @api
*/ */
olx.source.CartoDBOptions; olx.source.CartoDBOptions;
@@ -6269,6 +6269,14 @@ olx.source.CartoDBOptions.prototype.projection;
olx.source.CartoDBOptions.prototype.maxZoom; olx.source.CartoDBOptions.prototype.maxZoom;
/**
* Minimum zoom.
* @type {number|undefined}
* @api
*/
olx.source.CartoDBOptions.prototype.minZoom;
/** /**
* Whether to wrap the world horizontally. Default is `true`. * Whether to wrap the world horizontally. Default is `true`.
* @type {boolean|undefined} * @type {boolean|undefined}
+2
View File
@@ -111,6 +111,7 @@ ol.source.CartoDB.prototype.handleInitResponse_ = function(paramHash, event) {
} }
}; };
/** /**
* @private * @private
* @param {Event} event Event. * @param {Event} event Event.
@@ -119,6 +120,7 @@ ol.source.CartoDB.prototype.handleInitError_ = function(event) {
this.setState(ol.source.State.ERROR); this.setState(ol.source.State.ERROR);
} }
/** /**
* Apply the new tile urls returned by carto db * Apply the new tile urls returned by carto db
* @param {Object} data Result of carto db call. * @param {Object} data Result of carto db call.
+1 -1
View File
@@ -8,7 +8,7 @@ describe('ol.source.CartoDB', function() {
describe('constructor', function() { describe('constructor', function() {
it('returns a CartoDB source', function() { it('returns a CartoDB source', function() {
var source = new ol.source.CartoDB({ var source = new ol.source.CartoDB({
map: 'example', account: 'documentation',
config: {} config: {}
}); });
expect(source).to.be.a(ol.source.XYZ); expect(source).to.be.a(ol.source.XYZ);