Fix exception in pmtiles format when GeoJSON is requested (#1188)
This commit is contained in:
parent
ebad6f9aeb
commit
87e5b72ca4
1 changed files with 0 additions and 6 deletions
|
@ -69,12 +69,6 @@ export const serve_data = {
|
||||||
headers['Content-Type'] = 'application/x-protobuf';
|
headers['Content-Type'] = 'application/x-protobuf';
|
||||||
} else if (format === 'geojson') {
|
} else if (format === 'geojson') {
|
||||||
headers['Content-Type'] = 'application/json';
|
headers['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
if (isGzipped) {
|
|
||||||
data = zlib.unzipSync(data);
|
|
||||||
isGzipped = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
const tile = new VectorTile(new Pbf(data));
|
const tile = new VectorTile(new Pbf(data));
|
||||||
const geojson = {
|
const geojson = {
|
||||||
type: 'FeatureCollection',
|
type: 'FeatureCollection',
|
||||||
|
|
Loading…
Reference in a new issue