Add icon to reset coordinates input.
This commit is contained in:
parent
e9b8e0b7ae
commit
0bf8a149e7
5 changed files with 82 additions and 30 deletions
frontend/src/components
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue