From 31667a0d9fa6cecde37bd88ab9e230350ad5467a Mon Sep 17 00:00:00 2001 From: jlord Date: Tue, 30 Jul 2013 12:08:32 -0700 Subject: [PATCH] edited sheetsee to skip items w no lat/long --- js/sheetsee.js | 2 ++ 1 file changed, 2 insertions(+) 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',