-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmap_view.html
executable file
·221 lines (200 loc) · 9.03 KB
/
map_view.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>GPS :: Global Pneumococcal Sequencing Project</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,300,600' rel='stylesheet'
type='text/css'>
<!-- fonts, icons for bootstrap -->
<link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link href="css/styles.min.css" rel="stylesheet">
<!-- HTML5 Support for IE -->
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
<![endif]-->
<!-- Favicon -->
<link rel="shortcut icon" href="gps.ico">
<style type="text/css">
#map-canvas {
height: 500px;
}
</style>
<script type="text/javascript">
var map;
var geocoder;
function initialize() {
geocoder = new google.maps.Geocoder();
var latlng = new google.maps.LatLng(-31.397, 150.644);
var mapOptions = {
zoom: 2,
center: latlng
}
map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
showAddressInMap([
'Centers for Disease Control and Prevention',
'Emory University',
'Harvard School of Public Health',
'Imperial College London',
'London School of Hygiene and Tropical Medicine, London WC1E 7HT',
'Malawi, C. Africa',
'NICD, Johannesburg, S.Africa',
'University of Southampton',
'Wellcome Trust Sanger Institute',
'Medical Research Council Unit, Atlantic Blvd, Serrekunda, Gambia'
])
}
function placeMarker(location, text) {
var marker = new google.maps.Marker({
position: location,
map: map
});
if (text != undefined) {
var infowindow = new google.maps.InfoWindow(
{
content: text,
size: new google.maps.Size(50, 50)
});
}
google.maps.event.addListener(marker, 'click', function () { infowindow.open(map, marker); });
map.setCenter(location);
}
function showAddressInMap(address) { <li><a id="capacity_building" href="capacity_building.html">Capacity Building</a></li>
$.each(address, function (i, addr) {
$.getJSON('https://maps.googleapis.com/maps/api/geocode/json?address=' + addr + '&sensor=false', null, function (data) {
if (data.results[0]) {
var p = data.results[0].geometry.location;
var latlng = new google.maps.LatLng(p.lat, p.lng);
placeMarker(p, addr);
}
});
});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<!-- Header Starts -->
<header>
<div class="container">
<div class="row">
<div class="logo">
<h1><i class=""></i><a href="index.html"><span class="color">GPS</span></a></h1>
<div class="hmeta">Global Pneumococcal Sequencing Project</div>
</div>
</div>
</div>
</header>
<!-- Navigation bar starts -->
<div class="navbar navbar-default bs-docs-nav top-menu" role="banner">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
<ul class="nav navbar-nav">
<li class="active">
<a id="home" href="index.html">
<!-- <i class="fa fa-home blue"> </i> --> Home
</a>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
About <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li class=""><a id="summary" href="project_outline.html">Project Outline</a></li>
<li class=""><a id="summary" href="the_team.html">The Team</a></li>
<li class=""><a id="founders" href="partners.html">Project Partners </a></li>
<li class=""><a id="substudies" href="substudies.html">Sub-studies</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Resources <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class=""><a id="resources_overview" href="resources_overview.html">Overview</a></li>
<li class=""><a id="sampling_map" href="sampling_map.html">Countries</a></li>
<li class=""><a id="GPSC_lineages" href="GPSC_lineages.html">Strains</a></li>
<li class=""><a id="serotypes" href="serotypes.html">Serotypes</a></li>
<!-- <li class=""><a id="public_database" href="/public_database.html">Database (public)</a></li> -->
<li class=""><a id="pmen" href="pmen.html">PMEN Clones</a></li>
<li class=""><a id="isolate_bank_request" href="isolate_bank_request.html">Isolate Bank Request</a></li>
</ul>
</li>
<li><a id="publications" href="publications.html">Publications</a></li>
<li><a id="capacity_building" href="capacity_building.html">Capacity Building</a></li>
<li><a id="gps-database-overview" href="gps-database-overview" target="_blank">GPS Database</a></li>
<li><a id="gps-visualiser" href="gps-visualiser" target="_blank">GPS Visualiser</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Training <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class=""><a id="bioinformatics_training" href="bioinformatics_training.html">Bioinformatics Training</a></li>
<li class=""><a id="training_browser_based" href="training_drag_and_drop.html">Drag and Drop Tools</a></li>
<li class=""><a id="training_command_line" href="training_command_line.html">Command Line</a></li>
</ul>
</li>
<li><a id="contact" href="contact.html">Contact</a></li>
</ul>
</nav>
</div>
</div>
<!-- Navigation bar ends -->
<div id="content">
<section>
<div class="container content justify">
<header>
<h1><i class="fa fa-map-marker oblue"></i> Global Partners</h1>
</header>
<div class="desc">
<div id="map-canvas">GoogleMap should load here</div>
</div>
<br>
<hr>
<header>
<h1><i class="fa fa-list fa-sm oblue"></i> List of partner institutions</h1>
</header>
<ul>
<li><a target="_blank" href="https://www.cdc.gov">Centers for Disease Control and Prevention</a></li>
<li><a target="_blank" href="https://www.emory.edu/home/index.html">Emory University</a></li>
<li><a target="_blank" href="https://www.hsph.harvard.edu">Harvard School of Public Health</a></li>
<li><a target="_blank" href="https://www3.imperial.ac.uk">Imperial College London</a></li>
<li><a target="_blank" href="https://www.lshtm.ac.uk">London School of Hygiene and Tropical Medicine</a></li>
<li><a target="_blank" href="https://www.mlw.medcol.mw">MLW, Malawi</a></li>
<li><a target="_blank" href="https://www.mrc.ac.uk">MRC, The Gambia</a></li>
<li><a target="_blank" href="https://www.nicd.ac.za">NICD, South Africa</a></li>
<li><a target="_blank" href="https://www.southampton.ac.uk">University of Southampton</a></li>
<li><a target="_blank" href="https://www.sanger.ac.uk">Wellcome Trust Sanger Institute</a></li>
</ul>
</div>
</section>
</div>
<div id="modal"></div>
<footer>
<div class="container">
<div class="row copy">
<div class="col-lg-7 col-md-7 col-sm-12 copy-left">
<span>GPS © 2022</span> -
<a href="cookiespolicy.html" onclick="">Cookies policy</a> | <a href="legal.html">Terms & Conditions.</a>
</div>
<div class="col-lg-5 col-md-5 col-sm-12 copy-right">
This site is hosted by the <a href="https://www.sanger.ac.uk/">Wellcome Trust Sanger Institute</a>
</div>
</div>
</div>
<div class="clearfix"></div>
</footer>
<script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="js/custom.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
<script type="text/javascript" src="/zxtm/piwik2.js"></script>
</body>
</html>