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

@ -24,11 +24,14 @@
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);
{% endif %}
{%- endfor %} {%- endfor %}
loadmap(locations); loadmap(locations);