Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 439008d

Browse files
committedFeb 6, 2024
Remove min max constraints as they prevent requests spanning over antimeridian
1 parent 183fdc8 commit 439008d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed
 

‎src/bbox.ts

-6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ export class BBox {
99
public maxY: number;
1010

1111
public constructor(crs: CRS, minX: number, minY: number, maxX: number, maxY: number) {
12-
if (minX >= maxX) {
13-
throw new Error('MinX should be lower than maxX');
14-
}
15-
if (minY >= maxY) {
16-
throw new Error('MinY should be lower than maxY');
17-
}
1812
this.crs = crs;
1913
this.minX = minX;
2014
this.maxX = maxX;

0 commit comments

Comments
 (0)
Please sign in to comment.