Fix olx.source.CartoDBOptions definition
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user