diff --git a/lib/infobox/location.js b/lib/infobox/location.js index fbaf544..ba09a7e 100644 --- a/lib/infobox/location.js +++ b/lib/infobox/location.js @@ -3,13 +3,13 @@ define(['helper'], function (helper) { return function (config, el, router, d) { var sidebarTitle = document.createElement('h2'); - sidebarTitle.textContent = _.t('location.location') + ': ' + d.toString(); + sidebarTitle.textContent = _.t('location.location'); el.appendChild(sidebarTitle); helper.getJSON(config.reverseGeocodingApi + '?format=json&lat=' + d.lat + '&lon=' + d.lng + '&zoom=18&addressdetails=0&accept-language=' + _.locale()) .then(function (result) { if (result.display_name) { - sidebarTitle.textContent = result.display_name; + sidebarTitle.outerHTML += '

' + result.display_name + '

'; } });