From 06cdae499659e1e5f631adf92d6ef460f18b8289 Mon Sep 17 00:00:00 2001 From: scossa Date: Tue, 27 Aug 2024 13:58:06 +0200 Subject: [PATCH] guessisback, back again, marker and form are back, tell a friend --- public/js/eventHandler.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/public/js/eventHandler.js b/public/js/eventHandler.js index b563f5c..76ba522 100644 --- a/public/js/eventHandler.js +++ b/public/js/eventHandler.js @@ -15,11 +15,12 @@ export function initEvents(map) { markerForm.addEventListener("submit", processForm); function setStyleForEditing(){ + markerFormContainer.style.display = 'flex'; noticeCoordsPicker.style.display = 'block'; //messaggio inserimento remainingForm.style.display = 'none'; // form dati // imposta una X rossa come icona pulsante, come icona cursore un marker e entra nella modalità inserimento. document.getElementById("addMarkerBtn").innerHTML = 'Button Image'; - document.getElementById('map').style = 'cursor: url("./dist/images/marker-icon.png") 13 41, auto;'; + document.getElementById('map').style = 'cursor: url("js/dist/images/marker-icon.png") 13 41, auto;'; } function setStyleNotEditing() { @@ -111,7 +112,3 @@ document.getElementById('file-input').addEventListener('change', function () { document.querySelector('.file-chosen').textContent = truncatedFileName; }); -// var gpsbutton = document.getElementById('gps-button'); -// gpsbutton.addEventListener('click', function() { -// gpsControl.start(); -// }); \ No newline at end of file