@hotosm/geojson2vt
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "@hotosm/geojson2vt", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Generates Mapbox Vector Tiles from geojson files.", | ||
@@ -23,5 +23,4 @@ "keywords": [ | ||
"geojson-vt": "^3.2.1", | ||
"vt-pbf": "^3.1.1", | ||
"node-gzip": "^1.1.2" | ||
"vt-pbf": "^3.1.1" | ||
} | ||
} |
var fs = require('fs'); | ||
var vtpbf = require('vt-pbf'); | ||
var geojsonvt = require('geojson-vt'); | ||
const { gzip } = require('node-gzip'); | ||
const zlib = require('zlib'); | ||
@@ -81,5 +81,4 @@ var helpers = require('./helpers.js'); | ||
function writePbf(data, xPath, y) { | ||
gzip(data).then( | ||
buffer => fs.writeFileSync(`${xPath}/${y}.pbf`, buffer) | ||
); | ||
buffer = zlib.gzipSync(data); | ||
fs.writeFileSync(`${xPath}/${y}.pbf`, buffer); | ||
} | ||
@@ -86,0 +85,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
6695
101
- Removednode-gzip@^1.1.2
- Removednode-gzip@1.1.2(transitive)