Ask for confirmation for nodes outside of community bounds.

This commit is contained in:
baldo 2022-09-01 14:38:41 +02:00
parent 9387df8dd3
commit 4c6556de3f
6 changed files with 222 additions and 14 deletions
frontend/src/components

View file

@ -133,6 +133,14 @@ function centerOnCoordinates() {
function renderMap() {
const { layers, defaultLayers } = getLayers();
createMap(defaultLayers, layers);
if (
map &&
configStore.getConfig.otherCommunityInfo.showBorderForDebugging
) {
new L.Polygon(
configStore.getConfig.otherCommunityInfo.localCommunityPolygon
).addTo(map);
}
centerOnCoordinates();
updateMarker();
}