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

View File

@@ -6219,7 +6219,7 @@ olx.source.XYZOptions.prototype.wrapX;
* wrapX: (boolean|undefined),
* config: (Object|undefined),
* map: (string|undefined),
* account: (string|undefined)}}
* account: string}}
* @api
*/
olx.source.CartoDBOptions;
@@ -6269,6 +6269,14 @@ olx.source.CartoDBOptions.prototype.projection;
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`.
* @type {boolean|undefined}

View File

@@ -111,6 +111,7 @@ ol.source.CartoDB.prototype.handleInitResponse_ = function(paramHash, event) {
}
};
/**
* @private
* @param {Event} event Event.
@@ -119,6 +120,7 @@ ol.source.CartoDB.prototype.handleInitError_ = function(event) {
this.setState(ol.source.State.ERROR);
}
/**
* Apply the new tile urls returned by carto db
* @param {Object} data Result of carto db call.

View File

@@ -8,7 +8,7 @@ describe('ol.source.CartoDB', function() {
describe('constructor', function() {
it('returns a CartoDB source', function() {
var source = new ol.source.CartoDB({
map: 'example',
account: 'documentation',
config: {}
});
expect(source).to.be.a(ol.source.XYZ);