Remove type check

This commit is contained in:
Ivan Vazhenin
2023-12-14 18:56:32 +03:00
parent f94d6d3253
commit 47aecf4e14

View File

@@ -130,10 +130,11 @@ export const serve_data = {
if (format === options.pbfAlias) {
format = 'pbf';
}
if (format !== tileJSONFormat &&
!(format === 'geojson' && tileJSONFormat === 'pbf') && format !== 'png') {
return res.status(404).send('Invalid format');
}
tileJSONFormat = format;
// if (format !== tileJSONFormat &&
// !(format === 'geojson' && tileJSONFormat === 'pbf') && format !== 'png') {
// return res.status(404).send('Invalid format');
// }
if (z < item.tileJSON.minzoom || 0 || x < 0 || y < 0 ||
z > item.tileJSON.maxzoom ||
x >= Math.pow(2, z) || y >= Math.pow(2, z) ||