geojson.js
function setGeomAttrList(params) {
    for(var param in params) {
      if(params.hasOwnProperty(param)) {
        if(typeof params[param] === 'string') {
          geomAttrs.push(params[param]);
        } else if (typeof params[param] === 'object') { // Array of coordinates for Point
          geomAttrs.push(params[param][0]);
          geomAttrs.push(params[param][1]);
        }
      }
    }

    if(geomAttrs.length === 0) { throw new Error('No geometry attributes specified'); }
  }
function setGeomAttrList(params) {
    for(var param in params) {
      if(params.hasOwnProperty(param)) {
        if(typeof params[param] === 'string') {
          geomAttrs.push(params[param]);
        } else if (typeof params[param] === 'object') { // Array of coordinates for Point
          geomAttrs.push(params[param][0]);
          geomAttrs.push(params[param][1]);
        }
      }
    }

    if(geomAttrs.length === 0) { throw new Error('No geometry attributes specified'); }
  }
function setGeomAttrList ( params ) { for ( var param in params ) { if ( params . hasOwnProperty ( param ) ) { if ( typeof params [ param ] === 'string' ) { geomAttrs . push ( params [ param ] ) ; } else if ( typeof params [ param ] === 'object' ) { // Array of coordinates for Point geomAttrs . push ( params [ param ] [ 0 ] ) ; geomAttrs . push ( params [ param ] [ 1 ] ) ; } } } if ( geomAttrs . length === 0 ) { throw new Error ( 'No geometry attributes specified' ) ; } }
Adds fields which contain geometry data to geomAttrs. This list is used when adding properties to the features so that no geometry fields are added the properties key
Adds fields which contain geometry data to geomAttrs . This list is used when adding properties to the features so that no geometry fields are added the properties key