remove bounds check for coordinates

This commit is contained in:
Miko 2025-01-09 23:42:10 +01:00
parent 2c3c927b43
commit d9dc66afee

View file

@ -230,10 +230,6 @@ export const serve_data = {
xy = [intX, intY]; xy = [intX, intY];
bbox = new SphericalMercator().bbox(intX, intY, zoom); bbox = new SphericalMercator().bbox(intX, intY, zoom);
} else { } else {
if (x < -180 || y < -90 || x > 180 || y > 90) {
return res.status(404).send('Out of bounds');
}
//no zoom limit with coordinates //no zoom limit with coordinates
if (zoom < tileJSON.minzoom) { if (zoom < tileJSON.minzoom) {
zoom = tileJSON.minzoom; zoom = tileJSON.minzoom;