do not query osm for 'None' locations
This commit is contained in:
parent
83e4a10bbc
commit
31a731c1b8
1 changed files with 6 additions and 3 deletions
|
@ -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 %}
|
||||
|
||||
{% endif %}
|
||||
{%- endfor %}
|
||||
|
||||
loadmap(locations);
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue