Disable adding new elements-popup if the userbadge is disabled; add small cosmetic changes

This commit is contained in:
Pieter Vander Vennet 2021-07-18 21:48:11 +02:00
parent 186405784e
commit 219895191d
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);