commit
7802464c66
2 changed files with 8 additions and 4 deletions
|
@ -27,7 +27,8 @@ function performRequest(url, location, success_callback) {
|
||||||
|
|
||||||
let marker_icon = L.icon({
|
let marker_icon = L.icon({
|
||||||
iconUrl: "/static/images/marker-icon.png",
|
iconUrl: "/static/images/marker-icon.png",
|
||||||
shadowUrl: "/static/images/marker-shadow.png"
|
shadowUrl: "/static/images/marker-shadow.png",
|
||||||
|
iconAnchor: [12, 41]
|
||||||
});
|
});
|
||||||
|
|
||||||
let callback = function OSMCallBack(location, data) {
|
let callback = function OSMCallBack(location, data) {
|
||||||
|
|
|
@ -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