ruscomap/public/index.html
2024-06-30 22:56:19 +02:00

52 lines
1.7 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>
<div id="container"></div>
<div id="markerFormContainer">
<form id="markerForm" enctype="multipart/form-data">
<div id="noticeCoordsPicker">
<text>Clicca o premi sulla mappa per selezionare la posizione dell'oggetto</text>
<input id="formInputCoordY" name="y" type="hidden" />
<input id="formInputCoordX" name="x" type="hidden" />
</div>
<div id="remainingForm">
<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">
<button id="addMarkerBtn">📌</button>
</div>
</body>
<footer>
<script type="module" type="text/javascript" src="/js/map.js"></script>
</footer>
</html>