From bcf7057aad54662a2a7323670ea9980ca27a9874 Mon Sep 17 00:00:00 2001 From: Harry Cutts Date: Sat, 2 Feb 2013 18:30:33 +0000 Subject: Add OSM IDs to polygons returned from op2geojson --- resources/op2geojson.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/op2geojson.js b/resources/op2geojson.js index 6bea219..fd0ae35 100644 --- a/resources/op2geojson.js +++ b/resources/op2geojson.js @@ -55,7 +55,9 @@ op2geojson = function() { relation.tags['type'] == 'boundary' && relation.tags['boundary'] == 'catchment_area') { - features.push( instance.polygon(relation, ways, nodes) ); + var poly = instance.polygon(relation, ways, nodes); + poly.id = relation.tags['id']; + features.push(poly); } }); -- cgit v1.2.3