Skip to content

Commit

Permalink
slight modification to geom service for IE11 compatiblity
Browse files Browse the repository at this point in the history
  • Loading branch information
jahow committed Sep 29, 2017
1 parent 9248b88 commit e35a7be
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,12 @@
var nodes = format.writeFeaturesNode([outputFeature])
.firstChild.childNodes;
var geom = null;
nodes.forEach(function(node) {
for (var i = 0; i < nodes.length; i++) {
var node = nodes.item(0);
if (node.localName === outputFeature.getGeometryName()) {
geom = node;
}
});
}
if (!geom) {
console.warn('No geometry found for feature', feature);
return null;
Expand Down

0 comments on commit e35a7be

Please sign in to comment.