mapbox / leaflet-omnivore

universal format parser for Leaflet & Mapbox.js
https://www.mapbox.com/mapbox.js/example/v1.0.0/omnivore-gpx/
Other
651 stars 126 forks source link

Check CSV for empty strings #77

Closed MuellerMatthew closed 8 years ago

MuellerMatthew commented 8 years ago

You were previously checking if parsed[i][lonfield] was undefined twice within the same if statement. I removed the duplicated check, and added a check for empty strings which I think is what was originally intended for the second part of the if statement.

tmcw commented 8 years ago

This part of leaflet-omnivore is in a built file. Please fix this upstream in csv2geojson instead of in the built file.