js/sheetsee.js
// create geoJSON from your spreadsheet's coordinates
create geoJSON from your spreadsheet's coordinates
create geoJSON from your spreadsheet ' s coordinates
function createGeoJSON(data, optionsJSON) {
  var geoJSON = []
  data.forEach(function(lineItem){
    if (optionsJSON) var optionObj = buildOptionObject(optionsJSON, lineItem)
    var feature = {
      type: 'Feature',
      "geometry": {"type": "Point", "coordinates": [lineItem.long, lineItem.lat]},
      "properties": {
        "marker-size": "small",
        "marker-color": lineItem.hexcolor
      },
      "opts": optionObj,
    }
    geoJSON.push(feature)
  })
  return geoJSON
}
function createGeoJSON ( data , optionsJSON ) { var geoJSON = [ ] data . forEach ( function ( lineItem ) { if ( optionsJSON ) var optionObj = buildOptionObject ( optionsJSON , lineItem ) var feature = { type : 'Feature' , "geometry" : { "type" : "Point" , "coordinates" : [ lineItem . long , lineItem . lat ] } , "properties" : { "marker-size" : "small" , "marker-color" : lineItem . hexcolor } , "opts" : optionObj , } geoJSON . push ( feature ) } ) return geoJSON }
create geoJSON from your spreadsheet's coordinates
create geoJSON from your spreadsheet ' s coordinates