Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 645 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 645 Bytes

mbtiles2pbf

GitHub

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