cartodb-utils
v1.0.3
Published
Utils for working with cartodb
Downloads
3
Maintainers
Readme
cartodb-utils
Usage
npm install -g cartodb-utils
viz-url
CLI
viz-url [viz.json url here]
# tiles url for using in web map
API
var utils = require('cartodb-utils');
var vizUrl = 'http://documentation.cartodb.com/api/v2/viz/2b13c956-e7c1-11e2-806b-5404a6a683d5/viz.json';
utils.vizTileUrl(vizUrl)
.then(tileUrl => console.log(tileUrl))
.catch(error => console.error(error));