From 1641fd5727c5fab75547b21462785b600738804e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kajetan=20Krykwi=C5=84ski?= Date: Wed, 12 Oct 2016 16:14:40 +0200 Subject: [PATCH] togeojson.js: Fix bug with parsing google KML files" --- external/togeojson.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/external/togeojson.js b/external/togeojson.js index cd980b92..0c4f23ef 100755 --- a/external/togeojson.js +++ b/external/togeojson.js @@ -96,6 +96,8 @@ toGeoJSON = (function() { for (j = 0; j < geomNodes.length; j++) { geomNode = geomNodes[j]; if (geotypes[i] == 'Point') { + if(nodeVal(get1(geomNode, 'coordinates')) === null) + continue; geoms.push({ type: 'Point', coordinates: coord1(nodeVal(get1(geomNode, 'coordinates')))