diff --git a/js/poi.js b/js/poi.js index c934d29..6d89662 100644 --- a/js/poi.js +++ b/js/poi.js @@ -150,7 +150,7 @@ POI.prototype.getInfoBox = function(){ content+='
'; //name - content+='

' +((this.element.tags.hasOwnProperty("name")) ? this.element.tags["name"]:"----")+'

'; + content+='

' +(this.getName()?this.getName():"---")+'

'; //addr content+=''+((this.element.tags.hasOwnProperty("addr:city")) ? this.element.tags["addr:city"]+', ' : "")+((this.element.tags.hasOwnProperty("addr:street")) ? this.element.tags["addr:street"]+', ' : "")+((this.element.tags.hasOwnProperty("addr:housenumber")) ? this.element.tags["addr:housenumber"]+', ' : "")+'';