Skip to content

Commit

Permalink
add anchor so the marker points to the correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbloch committed Apr 6, 2019
1 parent 94fedf8 commit dd3fe26
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit dd3fe26

Please sign in to comment.