Add icon to reset coordinates input.

This commit is contained in:
baldo 2022-09-01 13:11:17 +02:00
parent e9b8e0b7ae
commit 0bf8a149e7
5 changed files with 82 additions and 30 deletions
frontend/src/components

View file

@ -91,6 +91,10 @@ function createMap(defaultLayers: L.Layer[], layers: { [p: string]: L.Layer }) {
function updateMarker() {
const coordinates = getCoordinates();
if (!coordinates) {
if (marker) {
marker.remove();
marker = null;
}
return;
}