do not query osm for 'None' locations

This commit is contained in:
mcbloch 2019-04-06 19:05:41 +02:00
parent 83e4a10bbc
commit 31a731c1b8

View file

@ -23,13 +23,16 @@
let locations = []; let locations = [];
let loc = {}; let loc = {};
{% for loc in locations -%} {% for loc in locations -%}
{% if loc.address %}
loc = { loc = {
"address": "{{loc.address}}", "address": "{{loc.address}}",
"name": "{{loc.name}}" "name": "{{loc.name}}"
}; };
locations.push(loc); locations.push(loc);
{%- endfor %}
{% endif %}
{%- endfor %}
loadmap(locations); loadmap(locations);
</script> </script>