forked from DLu/ros_map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
map.html
68 lines (63 loc) · 2.31 KB
/
map.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>ROS Users of the World</title>
<link href='http://fonts.googleapis.com/css?family=Titillium+Web' rel='stylesheet' type='text/css'>
<style>
html, body {
font-family: 'Titillium Web', sans-serif
}
#map-canvas {
height: 100%;
width: 80%;
position: absolute;
right: 0%
}
#text {
height: 100%;
width: 15%;
position: absolute;
left: 0%;
padding: 50px;
}
table {
border: 1px solid LightGray;
border-collapse: collapse;
}
</style>
<script src="http://www.metrorobots.com/analytics.js" ></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
<script>
function initialize() {
var map = new google.maps.Map(document.getElementById('map-canvas'));
var ctaLayer = new google.maps.KmlLayer({
url: 'http://metrorobots.com/scripts/generate_kml.py'
});
ctaLayer.setMap(map);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
<!-- add jQuery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- add pie chart -->
<script src="src/ocanvas-2.7.3.min.js"></script>
<script src="src/pie.js"></script>
</head>
<body>
<div id="text"><h1>ROS Users of the World</h1>
<ul>
<li><span style="color: #62AF44">GREEN </span> - School
<li><span style="color: #4186F0">BLUE </span> - Company
<li><span style="color: #DB4436">RED </span> - Research Institute
<li><span style="color: #FFDD5E">YELLOW </span> - Other
<li><span style="font-size: small">(white - unknown)</span>
</ul>
<!-- Code for the Pie Chart -->
<canvas id="pie_chart" style="padding-left: 0; padding-right: 0; margin-left: auto; margin-right: auto; display: block"></canvas>
<p>Add to or edit the map by changing the yaml files in <a href="https://github.com/DLu/ros_map/tree/master/data">this repository</a>, or by emailing <a href="mailto:david AT metrorobots DOT COM">the map maintainer</a>.
</div>
<div id="map-canvas"></div>
</body>
</html>