add anchor so the marker points to the correct location

This commit is contained in:
mcbloch 2019-04-06 19:31:04 +02:00
parent 94fedf8097
commit dd3fe26b86

View file

@ -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) {