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 loc = {};
{% for loc in locations -%}
{% for loc in locations -%}
{% if loc.address %}
loc = {
"address": "{{loc.address}}",
"name": "{{loc.name}}"
};
locations.push(loc);
{%- endfor %}
locations.push(loc);
{% endif %}
{%- endfor %}
loadmap(locations);
</script>