Remove type check
This commit is contained in:
@@ -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) ||
|
||||
|
||||
Reference in New Issue
Block a user