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) { if (format === options.pbfAlias) {
format = 'pbf'; format = 'pbf';
} }
if (format !== tileJSONFormat && tileJSONFormat = format;
!(format === 'geojson' && tileJSONFormat === 'pbf') && format !== 'png') { // if (format !== tileJSONFormat &&
return res.status(404).send('Invalid format'); // !(format === 'geojson' && tileJSONFormat === 'pbf') && format !== 'png') {
} // return res.status(404).send('Invalid format');
// }
if (z < item.tileJSON.minzoom || 0 || x < 0 || y < 0 || if (z < item.tileJSON.minzoom || 0 || x < 0 || y < 0 ||
z > item.tileJSON.maxzoom || z > item.tileJSON.maxzoom ||
x >= Math.pow(2, z) || y >= Math.pow(2, z) || x >= Math.pow(2, z) || y >= Math.pow(2, z) ||