diff --git a/js/sheetsee.js b/js/sheetsee.js index 1aeb2fa..a572861 100644 --- a/js/sheetsee.js +++ b/js/sheetsee.js @@ -284,6 +284,8 @@ function buildOptionObject(optionsJSON, lineItem) { function createGeoJSON(data, optionsJSON) { var geoJSON = [] data.forEach(function(lineItem){ + // skip if there are no coords + if (!lineItem.long || !lineItem.lat) return if (optionsJSON) var optionObj = buildOptionObject(optionsJSON, lineItem) var feature = { type: 'Feature',