Skip to content

Commit

Permalink
Merge pull request #113 from ZeusWPI/fix_map
Browse files Browse the repository at this point in the history
Fix map
  • Loading branch information
mcbloch authored Apr 30, 2019
2 parents dfb1911 + dd3fe26 commit 7802464
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/static/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ function performRequest(url, location, success_callback) {

let marker_icon = L.icon({
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) {
Expand Down
9 changes: 6 additions & 3 deletions app/templates/maps.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 7802464

Please sign in to comment.