-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (34 loc) · 1.41 KB
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!--The Leaflet.js CSS file -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin="" />
<!-- Styles for the page -->
<link rel="stylesheet" href="styles.css" />
<!--The Leaflet.js Library -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script>
</head>
<body>
<div class="header">
<div class="controls">
<span>Line Color: <input type="text" name="color" id="color-input" value="#FF0000" /></span>
<span>Line Opacity: <input type="number" name="opacity" id="opacity-input" max="100" min="0" value="30"
step="5" /></span>
<button onclick="plot()">Update</button>
<button onclick="fitBounds()">Zoom to Fit</button>
</div>
<p id="status">Loading...</p>
</div>
<!-- The embedded map element, id should match mapId in script -->
<div id="map"></div>
<!-- The data to plot on the map -->
<script src="data.js"></script>
<!-- The code to plot the data on the map -->
<script src="plot.js"></script>
</body>
</html>