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