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