diff options
author | Katie Filbert <filbertk@gmail.com> | 2012-12-01 18:21:52 +0100 |
---|---|---|
committer | Katie Filbert <filbertk@gmail.com> | 2012-12-01 18:21:52 +0100 |
commit | 9c6819bfbc996b25bbaa16e408dc4ee6cb4dd4f9 (patch) | |
tree | 83722e6d168610197aba00f2d2acac3d3b8d5365 | |
parent | 3fef504fd23b6ac69fde72f242b50a33114c93f5 (diff) | |
download | health-map-9c6819bfbc996b25bbaa16e408dc4ee6cb4dd4f9.tar health-map-9c6819bfbc996b25bbaa16e408dc4ee6cb4dd4f9.tar.gz |
display hospital names
-rw-r--r-- | resources/op2geojson.js | 10 |
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; } |