ruscomap/public/index.html

54 lines
2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""
/>
<script
src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""
></script>
<link rel="stylesheet" href="/css/map.css" />
<title>Document</title>
</head>
<body>
<!-- <button id="addMarkerBtn">BottoneInserimento</button> immagine marker bottone -->
<div id="container"></div>
<div id="markerFormContainer">
<form id="markerForm" enctype="multipart/form-data">
<div id="noticeCoordsPicker" style="display: none;">
<text>Clicca o premi sulla mappa per selezionare la posizione dell'oggetto</text>
<input id="formInputCoordY" name="lat" type="hidden" />
<input id="formInputCoordX" name="long" type="hidden" />
</div>
<div id="remainingForm" style="display: none;">
<label>Nome</label>
<input name="name" required type="text" />
<label>Descrizione</label>
<input name="description" required type="text" />
<label>Immagine</label>
<input
name="image"
required
type="file"
accept="image/x-png,image/jpeg,image/jpg"
/>
<button>Aggiungi Marker</button>
</div>
</form>
</div>
<div id="map">
<!-- // document.getElementById("addMarkerBtn").innerHTML = '<img src="https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon-2x.png" alt="Button Image" />'; //immagine marker bottone -->
<button id="addMarkerBtn">📌</button> <!--// bottone vecchio!-->
</div>
</body>
<footer>
<script type="module" type="text/javascript" src="/js/map.js"></script>
</footer>
</html>