remove bounds check for coordinates
This commit is contained in:
parent
2c3c927b43
commit
d9dc66afee
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue