Fix exception in pmtiles format when GeoJSON is requested (#1188)

This commit is contained in:
Jollyfant 2024-02-26 18:34:13 +01:00 committed by GitHub
parent ebad6f9aeb
commit 87e5b72ca4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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',