Browse Source

inlined metadata assignments

pull/1002/head
Stephen Hess 7 years ago
parent
commit
a85e079544
  1. 13
      helper/geojsonify.js

13
helper/geojsonify.js

@ -39,13 +39,14 @@ function geojsonifyPlaces( params, docs ){
} }
function geojsonifyPlace(params, place) { function geojsonifyPlace(params, place) {
const output = {}; const output = {
id: place._id,
gid: new Document(place.source, place.layer, place._id).getGid(),
layer: place.layer,
source: place.source,
source_id: place.source_id
};
output.id = place._id;
output.gid = new Document(place.source, place.layer, place._id).getGid();
output.layer = place.layer;
output.source = place.source;
output.source_id = place.source_id;
if (place.hasOwnProperty('bounding_box')) { if (place.hasOwnProperty('bounding_box')) {
output.bounding_box = place.bounding_box; output.bounding_box = place.bounding_box;
} }

Loading…
Cancel
Save