forked from andrewcylaw/HackHarvard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShortestPath.html
59 lines (59 loc) · 1.64 KB
/
ShortestPath.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Directions service (complex)</title>
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
height: 100%;
}
/* Optional: Makes the sample page fill the window. */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
#floating-panel {
position: absolute;
top: 10px;
left: 25%;
z-index: 5;
background-color: #fff;
padding: 5px;
border: 1px solid #999;
text-align: center;
font-family: 'Roboto','sans-serif';
line-height: 30px;
padding-left: 10px;
}
#warnings-panel {
width: 100%;
height:10%;
text-align: center;
}
</style>
</head>
<body>
<div id="floating-panel">
<b>Start: </b>
<select id="start">
<option value="south station, Boston, MA">South Station</option>
</select>
<b>End: </b>
<select id="end">
<option value="harvard university, Cambridge, MA">Harvard University</option>
</select>
<input type="button" value="Show places to visit near me" onclick="displayNearRoutePlaces()"/>
</div>
<div id="map"></div>
<div id="warnings-panel"></div>
<script src="ShortestPath.js"></script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAIyG6NnwEisGZXa8zS2kEtxEoO5Izjb6I&callback=initMap&libraries=geometry,places">
</script>
</body>
</html>