-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvisualizer.html
41 lines (38 loc) · 1.75 KB
/
visualizer.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8 />
<title>GPS Visualizer</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.mapbox.com/mapbox.js/v3.2.1/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v3.2.1/mapbox.css' rel='stylesheet' />
<script src='https://api.mapbox.com/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/L.Control.Locate.min.js'></script>
<link href='https://api.mapbox.com/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/L.Control.Locate.mapbox.css' rel='stylesheet' />
<link href='https://api.mapbox.com/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/css/font-awesome.min.css' rel='stylesheet' />
<script type="text/javascript" src="http://static.robotwebtools.org/EventEmitter2/current/eventemitter2.min.js"></script>
<script type="text/javascript" src="http://static.robotwebtools.org/roslibjs/current/roslib.min.js"></script>
<link rel="stylesheet" href="css/visualizer.css">
</head>
<body>
<table>
<tr>
<th><button class="streets" id="streets" onclick="switchLayer(0)">Streets</button></th>
</tr>
<tr>
<th>
<button class="satellite" id="satellite" onclick="switchLayer(1)">
Satellite
</button>
</th>
</tr>
</table>
<button class="panel" id="panel">Status</button>
<div class="content">
<p id="fix"></p>
<p id="position"></p>
<p id="speed"></p>
</div>
<div id='map'></div>
<script src="js/visualizer.js"></script>
</body>
</html>