From 77dbd5a2e1b08409af03c5e6e9b9484ec7a71d21 Mon Sep 17 00:00:00 2001 From: Jhonnatan Figueiredo da Costa Vieira Date: Fri, 22 Nov 2019 15:29:49 -0400 Subject: [PATCH] Issue #138: The if statement that checks if the geometry have holes causes some polygons not recognizable by ARCGIS maps. Simply removing this if statement works just fine for every polygon or multipolygon. In addition to this change, I'm inserting the .idea folders to be ignored by git --- .gitignore | 1 + wicket-arcgis.js | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index d5329dd..ee871c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *sublime* node_modules +.idea/* diff --git a/wicket-arcgis.js b/wicket-arcgis.js index d756c29..2f1295a 100644 --- a/wicket-arcgis.js +++ b/wicket-arcgis.js @@ -209,11 +209,6 @@ Wkt.Wkt.prototype.construct = { return rings; }); - if (!holey && rings[0].length > 1) { // Easy, if there are no inner rings (holes) - // But we add the second condition to check that we're not too deeply nested - return rings; - } - newRings = []; for (i = 0; i < rings.length; i += 1) { if (rings[i].length > 1) {