geojson.js
function setGeom(params) {
    params.geom = {};

    for(var param in params) {
      if(params.hasOwnProperty(param) && geoms.indexOf(param) !== -1){
        params.geom[param] = params[param];
        delete params[param];
      }
    }

    setGeomAttrList(params.geom);
  }
function setGeom(params) {
    params.geom = {};

    for(var param in params) {
      if(params.hasOwnProperty(param) && geoms.indexOf(param) !== -1){
        params.geom[param] = params[param];
        delete params[param];
      }
    }

    setGeomAttrList(params.geom);
  }
function setGeom ( params ) { params . geom = { } ; for ( var param in params ) { if ( params . hasOwnProperty ( param ) && geoms . indexOf ( param ) !== - 1 ) { params . geom [ param ] = params [ param ] ; delete params [ param ] ; } } setGeomAttrList ( params . geom ) ; }
Moves the user-specified geometry parameters under the `geom` key in param for easier access
Moves the user - specified geometry parameters under the geom key in param for easier access