From 1ff3a56d1668166c6b11cb00eb1c8cafeaebd546 Mon Sep 17 00:00:00 2001 From: Emmanuel Dewaele Date: Thu, 25 Jun 2015 21:47:34 +0200 Subject: [PATCH] Popup title is the same as popup name For the sake of consistency, when no name is provided, the popup title may be taken from "ref" or "operator" as in getName() --- js/poi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]+', ' : "")+'';