-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
28 lines (25 loc) · 805 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
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div id="map"></div>
<!--javascript -->
<script>
function initMap() {
var location = {lat: -25.363, lng: 131.044};
var map = new google.maps.Map(document.getElementById("map"), {
zoom: 4,
center: location
});
var marker = new google.maps.Marker({
position: location,
map: map
});
}
</script>
<!--Need an actual API key that works-->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBYzXj5wF4L6mChyyc5xwfb2QT1QEZ9VN8&callback=initMap"></script>
</body>
</html>