mbtiles2pbf
v0.0.1
Published
This module will extract pbf files from mbtile by using mbutil.
Downloads
2
Readme
mbtiles2pbf
This module will extract pbf files from mbtile by using Nodejs.
Installation
npm install mbtiles2pbf
Execute
const {Mbtiles2Pbf, FileExtension} = require('mbtiles2pbf');
const src = __dirname + '/test.mbtiles'
const dist = __dirname + '/tiles'
const mbtile2pbf = new Mbtiles2Pbf(src, dist, FileExtension.MVT);
mbtile2pbf.run()
.then(no_files=>{console.log(no_files)})
.catch(err=>{console.log(err)})
Test
npm test