add anchor so the marker points to the correct location
This commit is contained in:
parent
94fedf8097
commit
dd3fe26b86
1 changed files with 2 additions and 1 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) {
|
||||||
|
|
Loading…
Reference in a new issue