From a85e079544777986c29012768c54c1d56e0c1faa Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Mon, 11 Sep 2017 17:09:02 -0400 Subject: [PATCH] inlined metadata assignments --- helper/geojsonify.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/helper/geojsonify.js b/helper/geojsonify.js index 9b3820b9..0fc96ea1 100644 --- a/helper/geojsonify.js +++ b/helper/geojsonify.js @@ -39,13 +39,14 @@ function geojsonifyPlaces( params, docs ){ } 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')) { output.bounding_box = place.bounding_box; }