edited sheetsee to skip items w no lat/long

This commit is contained in:
jlord 2013-07-30 12:08:32 -07:00
parent 99875e3a63
commit 31667a0d9f

View File

@ -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',