diff --git a/static/js/map.js b/static/js/map.js index 5ab8494..a34dcaf 100644 --- a/static/js/map.js +++ b/static/js/map.js @@ -286,6 +286,11 @@ function build_item_detail(item, tag_or_key_list) { popup += `
${isa_label} (${isa_qid})`; } } + if (item.street_address && item.street_address.length) { + popup += "
street address"; + popup += `
${item.street_address[0]}`; + } + popup += '
' if (tag_or_key_list && tag_or_key_list.length) { @@ -295,11 +300,6 @@ function build_item_detail(item, tag_or_key_list) { } } - if (item.street_address && item.street_address.length) { - popup += "
street address"; - popup += `
${item.street_address[0]["text"]}`; - } - popup += "
"; return popup;