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
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue