Merge pull request #116 from ZeusWPI/fix/map-popup

fixed poput location
This commit is contained in:
Maxime 2019-05-28 18:57:28 +02:00 committed by GitHub
commit f4187a3385
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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