Initial commit

This commit is contained in:
zhongjin
2020-06-15 10:58:47 +08:00
commit 4f1dfe7564
8590 changed files with 1516878 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
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;'
}
}]
});
};