-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (34 loc) · 932 Bytes
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>My Google Map</title>
<style>
#map{
height:400px;
width: 100%;
}
</style>
</head>
<body>
<h1>My Google Map</h1>
<div id="map"></div>
<script>
function initMap(){
var options = {
zoom:8,
center:{lat:42.3601,lng:-71.0589}
}
var map = new google.maps.Map(document.getElementById('map'), options);
var marker = new google.maps.Marker({
position:{lat:42.4668, lng:-70.9495},
map: map
});
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCeoNryd4cXcsL-MuzeueT-UiPsNyCLImQ&callback=initMap"
async defer></script>
</body>
</html>