@versatiles/container
v1.2.3
Published
A client library for reading VersaTiles containers
Downloads
60
Readme
A client library for VersaTiles containers.
Install
npm i @versatiles/container
Usage Example
import VersaTiles from '@versatiles/container';
import fs from 'fs';
const container = new VersaTiles('https://example.org/planet.versatiles');
const header = await container.getHeader();
const tile = await container.getTileUncompressed(z,x,y);
fs.writeFileSync('tile.' + header.tile_format, tile);