-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHW07.html
More file actions
31 lines (31 loc) · 710 Bytes
/
HW07.html
File metadata and controls
31 lines (31 loc) · 710 Bytes
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
<!DOCTYPE html>
<html>
<head>
<style>
#map {
height: 400px;
width: 100%;
}
</style>
</head>
<body>
<h3>My Google Maps Demo</h3>
<div id="map"></div>
<script>
function initMap() {
var uluru = {lat: -25.363, lng: 131.044};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 4,
center: uluru
});
var marker = new google.maps.Marker({
position: uluru,
map: map
});
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDMvG0jxjVWoidJ9PbMdWdxQORMoY35lCg&callback=initMap">
</script>
</body>
</html>