diff --git a/SJPv6/www/here-maps.js b/SJPv6/www/here-maps.js index a02c9a9..b72b2dc 100644 --- a/SJPv6/www/here-maps.js +++ b/SJPv6/www/here-maps.js @@ -116,11 +116,10 @@ function addLocationsToPanel(locations){ for (i = 0; i < locations.length; i += 1) { let location = locations[i]; var li = document.createElement('li'), - divLabel = document.createElement('div'), - address = location.address, - content = '' + address.label + '
'; - position = location.position; - + divLabel = document.createElement('div'), + address = location.address, + content = '' + address.label + '
'; + position = location.position; content += 'houseNumber: ' + address.houseNumber + '
'; content += 'street: ' + address.street + '
'; content += 'district: ' + address.district + '
';