blob: b29f84f143729db415d1e430ac78042896e5cbcc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
<html>
<head>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
{{ templates/index.css }}
</head>
<body>
<div id="map"></div>
<form id="path-form">
<div class="row" >
<div class="col">
Place marker for:
<div>
<input type="radio" name="marker-point" id="marker-point-start" checked="true" />
<label for="marker-point-start">Start</label>
</div>
<div>
<input type="radio" name="marker-point" id="marker-point-end" />
<label for="marker-point-end">Destination</label>
</div>
</div>
<div class="col">
<div>
<label for="lat1">Start lat:</label>
<input name="lat1" id="lat1" />
</div>
<div>
<label for="lng1">Start lng:</label>
<input name="lng1" id="lng1" />
</div>
</div>
<div class="col">
<div>
<label for="lat2">End latitude:</label>
<input name="lat2" id="lat2" />
</div>
<div>
<label for="lng2">End longitude:</label>
<input name="lng2" id="lng2" />
</div>
</div>
<input type="submit" value="Find path" />
</div>
</form>
{{ templates/index.js }}
</body>
</html>
|