Merge pull request #10194 from MrSoUndso/dev
Added check to make sure extent array has four objects.
This commit is contained in:
@@ -31,6 +31,9 @@ class Bbox extends Filter {
|
||||
* @type {import("../../extent.js").Extent}
|
||||
*/
|
||||
this.extent = extent;
|
||||
if (extent.length !== 4) {
|
||||
throw new Error('Expected an extent with four values ([minX, minY, maxX, maxY])');
|
||||
}
|
||||
|
||||
/**
|
||||
* @type {string|undefined}
|
||||
|
||||
Reference in New Issue
Block a user