fixed poput location

This commit is contained in:
fklinck 2019-05-28 19:52:38 +02:00
parent 7802464c66
commit 7555b9d65c
No known key found for this signature in database
GPG key ID: C0B6C62B8313F2A1

View file

@ -41,7 +41,7 @@ let callback = function OSMCallBack(location, data) {
let marker = L.marker([lat, lon], { let marker = L.marker([lat, lon], {
icon: marker_icon icon: marker_icon
}).addTo(map) }).addTo(map)
.bindPopup(location.name + ', ' + location.address); .bindPopup(location.name + ', ' + location.address, {offset: new L.Point(0, -16)});
marker.on('mouseover', function(env) { marker.on('mouseover', function(env) {
marker.openPopup(); marker.openPopup();