edited sheetsee to skip items w no lat/long
This commit is contained in:
parent
99875e3a63
commit
31667a0d9f
@ -284,6 +284,8 @@ function buildOptionObject(optionsJSON, lineItem) {
|
|||||||
function createGeoJSON(data, optionsJSON) {
|
function createGeoJSON(data, optionsJSON) {
|
||||||
var geoJSON = []
|
var geoJSON = []
|
||||||
data.forEach(function(lineItem){
|
data.forEach(function(lineItem){
|
||||||
|
// skip if there are no coords
|
||||||
|
if (!lineItem.long || !lineItem.lat) return
|
||||||
if (optionsJSON) var optionObj = buildOptionObject(optionsJSON, lineItem)
|
if (optionsJSON) var optionObj = buildOptionObject(optionsJSON, lineItem)
|
||||||
var feature = {
|
var feature = {
|
||||||
type: 'Feature',
|
type: 'Feature',
|
||||||
|
Loading…
Reference in New Issue
Block a user