34 lines
756 B
JavaScript
34 lines
756 B
JavaScript
var cdb = require('internal-carto.js');
|
|
|
|
/**
|
|
* Spec helper, to create a default vis object.
|
|
* @return {Object} returns a vis instance
|
|
*/
|
|
module.exports = function () {
|
|
return cdb.createVis(document.createElement('div'), {
|
|
bounds: [[24.206889622398023, -84.0234375], [76.9206135182968, 169.1015625]],
|
|
datasource: {
|
|
maps_api_template: 'fake_maps_api_template',
|
|
user_name: 'pepe'
|
|
},
|
|
options: {
|
|
scrollwheel: false
|
|
},
|
|
layers: [{
|
|
type: 'torque',
|
|
maps_api_template: 'fake_maps_api_template',
|
|
options: {
|
|
cartocss: 'hello',
|
|
source: 'a0'
|
|
}
|
|
}],
|
|
analyses: [{
|
|
id: 'a0',
|
|
type: 'source',
|
|
params: {
|
|
query: 'SELECT * FROM foo;'
|
|
}
|
|
}]
|
|
});
|
|
};
|