cartodb-utils
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "cartodb-utils", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Utils for working with cartodb", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# cartodb-utils | ||
## viz-tile-url | ||
## Usage | ||
```sh | ||
bin/tile-url [viz.json url here] | ||
npm install -g cartodb-utils | ||
``` | ||
## `viz-url` | ||
### CLI | ||
```sh | ||
viz-url [viz.json url here] | ||
# tiles url for using in web map | ||
``` | ||
or programatically: | ||
### API | ||
```js | ||
var utils = require('cartodb-utils'); | ||
var vizUrl = 'http://documentation.cartodb.com/api/v2/viz/2b13c956-e7c1-11e2-806b-5404a6a683d5/viz.json'; | ||
// Your viz.json url here | ||
utils.vizTileUrl('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)); | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2537
28