diff --git a/src/main/webapp/js/mapModal.js b/src/main/webapp/js/mapModal.js index 4fda7c8609b1c8787d19f70cb7e4b32a34e754de..877c042bc63272167fe4f28974843892fed4d6dc 100644 --- a/src/main/webapp/js/mapModal.js +++ b/src/main/webapp/js/mapModal.js @@ -336,8 +336,7 @@ class MapModal { submitButton.addEventListener('click', () => { const feature = this.createFeatureForPoint(nameInput.value, parseInt(typeInput.value, 10), parseFloat(longitudeInput.value), parseFloat(latitudeInput.value)); - this.displaySelectedFeatureInfoControl.updateInfoPanel(feature); - newPointFormElement.remove(); + this.confirmSelection(feature); }); }); }