Fix exception in pmtiles format when GeoJSON is requested

This commit is contained in:
Mathijs Koymans 2024-02-26 15:49:00 +01:00
parent ebad6f9aeb
commit 94c53d9fe8

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