-
Notifications
You must be signed in to change notification settings - Fork 0
/
explore.html
39 lines (38 loc) · 1013 Bytes
/
explore.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>地圖</title>
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
}
#map {
height: 100%;
}
</style>
<script type="text/javascript" src="jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="explore.js"></script>
<script type="text/javascript">
$( document ).ready(function() {
$("button").on("click", function() {
switch($(this).attr("id")) {
case "hospital":
markSites(window.map, hospitals);
break;
}
});
});
</script>
</head>
<body>
<button id="hospital">醫院</button>
<button id="park">公園</button>
<div id="map"></div>
<script async defer
src="https://maps.googleapis.com/maps/api/js?v=3&key=AIzaSyBm3Vv7k-8DiE_uBvptymYypVtYlGnqF8g&signed_in=true&callback=initMap"></script>
</body>
</html>