aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilli <willi@jups42.de>2012-12-01 18:23:03 +0100
committerWilli <willi@jups42.de>2012-12-01 18:23:03 +0100
commit6e7be0a947d505f77da1e27f698628d8c85a0a58 (patch)
tree53734cece6087c74f562553655cd1e7810825c8f
parent07c0da8495319b0d4efb24b2565123b559a19d17 (diff)
parent9c6819bfbc996b25bbaa16e408dc4ee6cb4dd4f9 (diff)
downloadhealth-map-6e7be0a947d505f77da1e27f698628d8c85a0a58.tar
health-map-6e7be0a947d505f77da1e27f698628d8c85a0a58.tar.gz
Merge branch 'master' of github.com:filbertkm/hospital-map
-rw-r--r--resources/op2geojson.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/resources/op2geojson.js b/resources/op2geojson.js
index 1285fc1..ef06c96 100644
--- a/resources/op2geojson.js
+++ b/resources/op2geojson.js
@@ -21,13 +21,19 @@ op2geojson = function() {
};
instance.point = function(node) {
- point = {
+ var name;
+ if ( typeof node.tags.name != 'undefined' ) {
+ name = node.tags.name;
+ } else {
+ name = '';
+ }
+ var point = {
"type" : "Feature",
"geometry" : {
"type" : "Point",
"coordinates" : [node.lon,node.lat]
},
- "properties" : { "name" : "Sankt Gertrauden-Krankenhaus" },
+ "properties" : { "name" : name },
};
return point;
}