Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/knownasilya/carto-utils
Util cli/modules for working with carto
https://github.com/knownasilya/carto-utils
carto cartodb tiles
Last synced: 10 days ago
JSON representation
Util cli/modules for working with carto
- Host: GitHub
- URL: https://github.com/knownasilya/carto-utils
- Owner: knownasilya
- Created: 2015-03-30T19:21:25.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-12T19:45:29.000Z (over 7 years ago)
- Last Synced: 2024-12-31T23:27:48.747Z (17 days ago)
- Topics: carto, cartodb, tiles
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# carto-utils
## Usage
```sh
npm install -g cartodb-utils
```## `viz-url`
### CLI
```sh
viz-url [viz.json url here]
# tiles url for using in web map
```### API
```js
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));
```