Merge pull request #116 from ZeusWPI/fix/map-popup
fixed poput location
This commit is contained in:
commit
f4187a3385
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue