From 87e5b72ca40708beaa950d8277fe2fd4584df842 Mon Sep 17 00:00:00 2001 From: Jollyfant Date: Mon, 26 Feb 2024 18:34:13 +0100 Subject: [PATCH] Fix exception in pmtiles format when GeoJSON is requested (#1188) --- src/serve_data.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/serve_data.js b/src/serve_data.js index 099b698..7f1284d 100644 --- a/src/serve_data.js +++ b/src/serve_data.js @@ -69,12 +69,6 @@ export const serve_data = { headers['Content-Type'] = 'application/x-protobuf'; } else if (format === 'geojson') { headers['Content-Type'] = 'application/json'; - - if (isGzipped) { - data = zlib.unzipSync(data); - isGzipped = false; - } - const tile = new VectorTile(new Pbf(data)); const geojson = { type: 'FeatureCollection',