forked from MapComplete/MapComplete
Disable adding new elements-popup if the userbadge is disabled; add small cosmetic changes
This commit is contained in:
parent
186405784e
commit
219895191d
3 changed files with 15 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue