Merge branch 'develop' into feature/road-splitting

This commit is contained in:
Pieter Vander Vennet 2021-07-18 21:50:17 +02:00
commit 5e50dec232
3 changed files with 15 additions and 2 deletions

View file

@ -47,7 +47,12 @@ export default class StrayClickHandler {
popupAnchor: [0, -45]
})
});
const popup = L.popup().setContent("<div id='strayclick'></div>");
const popup = L.popup({
autoPan: true,
autoPanPaddingTopLeft: [15,15],
closeOnEscapeKey: true,
autoClose: true
}).setContent("<div id='strayclick' style='height: 65vh'></div>");
self._lastMarker.addTo(leafletMap.data);
self._lastMarker.bindPopup(popup);