Skip to content

Commit c67fff6

Browse files
committed
don't copy empty annotations
1 parent ca361d9 commit c67fff6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/port/xml2geo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function xml2geo() {
172172
}
173173
}
174174

175-
// Show all color-specific outputs
176-
let finalOutput = Object.values(outputMap);
175+
// Show all color-specific outputs, skipping colors with no actual regions
176+
let finalOutput = Object.values(outputMap).filter((entry) => entry['geometries']['features'].length > 0);
177177
document.getElementById('output').textContent = JSON.stringify(finalOutput, null, 2);
178178
}

0 commit comments

Comments
 (0)