[DEPRECATED] Tangram.cartodb
This is no longer supported.
Installation & usage
me$ npm i tangram-cartocss// orme$ yarn add tangram-cartocss
;
API
TC constructor
new TC
/** * Cartodb api to handle tangram maps. * @param * @return */ var tangramScene = map;
.addLayer
/** * Add a layer to Tangram instance. * @param */tangramScene;
.addDataSource
/** * Add a dataSource to Tangram instance. * @param */tangramScene;
Contributing
me$ git clone $repo_urlcd into_folderyarnyarn start
It will print the dev url to try the demos.
[0001] info Server running at http://192.168.0.12:8000/ [0001] info LiveReload running on 35729[0003] 43ms 1115B GET 200 /[0003] 7ms 886B GET 200 /demos/css/main.css[0004] 220ms 12KB GET 200 /demos/main.js
We use ES6 and Node > 6.X, I'm using 7.0 right now.
Testing
Serve our testing application with
yarn watch
This will open a dev server in http://10.0.32.188:8000
where you can load custom maps.