moved the popup it doesnt overlap with marker

This commit is contained in:
Kobe Mertens 2019-02-17 17:23:31 +01:00
parent 67917aa526
commit 02e12a856d

View file

@ -21,7 +21,10 @@ $(document).ready(function() {
function onEachFeature(feature, layer) {
if (feature.properties) {
layer.bindPopup(popuptemplate(feature.properties));
var popup = L.popup({
offset: new L.point(0, -6) //Offset needed, marker and popup can't overlap
}).setContent(popuptemplate(feature.properties));
layer.bindPopup(popup);
}
}