From 251f9825f4e4d81cc757bd7f13dc31a669454577 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Fri, 5 Jun 2020 14:19:37 -0400 Subject: [PATCH] Fix extent logic change from 28bd985a319ceee0d37f64ee84f4d8fcae74ea7c --- modules/geo/extent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/geo/extent.js b/modules/geo/extent.js index 8efa3dc26..c8d65d4d5 100644 --- a/modules/geo/extent.js +++ b/modules/geo/extent.js @@ -107,9 +107,9 @@ Object.assign(geoExtent.prototype, { var a1 = this.intersection(obj).area(); var a2 = this.area(); - if (a1 === Infinity || a2 === Infinity || a2 === 0) { + if (a1 === Infinity || a2 === Infinity) { return 0; - } else if (a1 === 0) { + } else if (a1 === 0 || a2 === 0) { if (obj.contains(this)) { return 1; }