guessisback, back again, marker and form are back, tell a friend

This commit is contained in:
scossa 2024-08-27 13:58:06 +02:00
parent c5d7074b93
commit 06cdae4996

View file

@ -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 = '<img src="../img/xred20.png" alt="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();
// });