Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 23abe65

Browse files
author
Jin IGARASHI
committed
updated module of mbtiles2pbf
1 parent dab5898 commit 23abe65

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const postgis2mbtiles = require('postgis2mbtiles');
2-
const {Mbtiles2Pbf} = require('@watergis/mbtiles2pbf');
2+
const {Mbtiles2Pbf, FileExtension} = require('@watergis/mbtiles2pbf');
33
const {postgis2geojson} = require('@watergis/postgis2geojson');
44
const config = require('./config');
55
const configSearch = require('./config-search');
@@ -10,7 +10,7 @@ const VtMapCreator = () =>{
1010
createGeoJSONSearch();
1111

1212
const pg2mbtiles = new postgis2mbtiles(config);
13-
const mbtiles2pbf = new Mbtiles2Pbf(config.mbtiles, config.ghpages.tiles, ".mvt");
13+
const mbtiles2pbf = new Mbtiles2Pbf(config.mbtiles, config.ghpages.tiles, FileExtension.MVT);
1414
pg2mbtiles.run()
1515
.then(res=>{return mbtiles2pbf.run()})
1616
.catch(err=>{console.log(err);}).finally(()=>{

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"homepage": "https://github.com/narwassco/vt-map#readme",
2121
"dependencies": {
22-
"@watergis/mbtiles2pbf": "0.0.1",
22+
"@watergis/mbtiles2pbf": "^0.0.2",
2323
"@watergis/postgis2geojson": "^0.1.1",
2424
"dotenv": "^8.2.0",
2525
"postgis2mbtiles": "git+https://github.com/narwassco/postgis2mbtiles.git"

0 commit comments

Comments
 (0)