aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorHarry Cutts <eternal.linux@gmail.com>2013-02-02 18:30:33 +0000
committerHarry Cutts <eternal.linux@gmail.com>2013-02-02 18:30:33 +0000
commitbcf7057aad54662a2a7323670ea9980ca27a9874 (patch)
tree8d94d26ae5f8beb05894f4698b5fdd1d512d88a1 /resources
parentb4ee6a2fc76e0ad29e61a5c8646599ca9547d400 (diff)
downloadhealth-map-bcf7057aad54662a2a7323670ea9980ca27a9874.tar
health-map-bcf7057aad54662a2a7323670ea9980ca27a9874.tar.gz
Add OSM IDs to polygons returned from op2geojson
Diffstat (limited to 'resources')
-rw-r--r--resources/op2geojson.js4
1 files changed, 3 insertions, 1 deletions
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);
}
});