@watergis/mbtiles2pbf
v0.2.1
Published
This module will extract pbf files from mbtile by using mbutil.
Downloads
6
Readme
mbtiles2pbf
This module will extract pbf files from mbtile by using Nodejs.
Installation
npm install @watergis/mbtiles2pbf
Execute
const {Mbtiles2Pbf, FileExtension} = require('@watergis/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