-
Notifications
You must be signed in to change notification settings - Fork 0
/
assignment2-index.html
74 lines (64 loc) · 2.28 KB
/
assignment2-index.html
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!--SIW001 - Programming (2018/2019) -->
<!--Assignment_2 -->
<!--SENAIT MELES ALEMA -->
<html>
<head>
<meta charset="utf-8"/>
<!-- leaflet -->
<link rel="stylesheet" href="https://npmcdn.com/[email protected]/dist/leaflet.css" />
<script src="https://npmcdn.com/[email protected]/dist/leaflet.js"></script>
<!-- turf -->
<script src='https://npmcdn.com/@turf/turf/turf.min.js' defer></script>
<!-- custom libraries -->
<script src="utils.js"></script>
<link rel="stylesheet" href="assignment2-style.css"/>
<script src="assignment2-script.js" defer></script>
</head>
<body>
<div class="InnerBody">
<h1 class="mainHeader">Assignment. Leaflet.js, Turf.js, event handling, and HTML DOM Tables, GeoLocation API</h1>
<header >
<h2 class="pad">Input Parameters</h2>
</header>
<main>
<section class="pad2">
<label>Bounding box:</label><span>Campus UJI</span>
<button id="btn-bbox" type="button">View on map</button>
<label>Number of points:</label> <input id="num" type="number">
<button id="btn-points" type="button">Generate random points!</button>
</section>
<section class="pad3">
<button id="btn-myposition" type="button">Where am I?</button>
<span id="my-lon" class="hidePosition"></span>
<span id="my-lat" class="hidePosition"></span>
</section>
<br/>
<br><br>
<section id="table-section">
<div id="table-div" class="hide">
<table id="tbl">
<thead id="tableHead" class="hideHead">
<tr id="tblHead">
<th>Longitud</th>
<th>Latitud</th>
<th>Action</th>
</tr>
</thead>
<tbody id="tableID" class="hide2">
<th>123</th>
<th>444</th>
<th>view</th>
</tbody>
</table>
</div>
</section>
<section id="map-section">
<div id="mapId"> </div>
<div id="map-div"> </div>
<!-- <script>leafletfInitMap('map-div');</script> -->
</section>
</main>
</div>
</body>
</html>