Merge pull request #10194 from MrSoUndso/dev

Added check to make sure extent array has four objects.
This commit is contained in:
Tim Schaub
2019-10-28 06:39:11 -06:00
committed by GitHub

View File

@@ -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}