aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--resources/op2geojson.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/op2geojson.js b/resources/op2geojson.js
index 0fa2967..c453df7 100644
--- a/resources/op2geojson.js
+++ b/resources/op2geojson.js
@@ -19,7 +19,8 @@ op2geojson = function() {
// Add nodes and ways to the layer
var features = [];
$.each(data.elements, function(i, item) {
- if( item.type === 'node' && item.tags != null ) {
+ if( item.type === 'node' && item.tags != undefined
+ && item.tags['amenity'] != undefined) {
features.push( instance.point(item) );
} else if (item.type === 'way') {
features.push( instance.lineString(item, nodes) );