aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2013-02-02 18:33:39 +0000
committerChristopher Baines <cbaines8@gmail.com>2013-02-02 18:33:39 +0000
commit96acebb8a39ff685d0c97df4a346071c213e1240 (patch)
tree46d0d44fbdac61a259f778d7fa602b9298a785d7 /resources
parentc0fa56951a98bcd64c2878a118e9053090542250 (diff)
parentbcf7057aad54662a2a7323670ea9980ca27a9874 (diff)
downloadhealth-map-96acebb8a39ff685d0c97df4a346071c213e1240.tar
health-map-96acebb8a39ff685d0c97df4a346071c213e1240.tar.gz
Merge remote-tracking branch 'fodaro/master'
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);
}
});