code: function(feature) {
              var geom = this.extract.geometry.apply(this, [feature.geometry]);
              var json = {
                  "type": "Feature",
                  "properties": feature.attributes,
                  "geometry": geom
              };
              if (feature.fid != null) {
                  json.id = feature.fid;
              }
              return json;
          }
docs: Method: extract.feature
  Return a partial GeoJSON object representing a single feature.
  
  Parameters:
  feature - {<OpenLayers.Feature.Vector>}
  
  Returns:
  {Object} An object representing the point.