forked from udacity/ud864
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject_Code_2_MakingYourMark.html
More file actions
42 lines (39 loc) · 933 Bytes
/
Copy pathProject_Code_2_MakingYourMark.html
File metadata and controls
42 lines (39 loc) · 933 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
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html>
<head>
<style>
html,
body {
font-family: Arial, sans-serif;
height: 100%;
margin: 0;
padding: 0;
}
#map {
height: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
var map;
function initMap() {
// Constructor creates a new map - only center and zoom are required.
map = new google.maps.Map(document.getElementById('map'), {
center: {lat: 40.7413549, lng: -73.9980244},
zoom: 13
});
var tribeca = {lat: 40.719526, lng: -74.0089934};
var marker = new google.maps.Marker({
position: tribeca,
map: map,
title: 'First Marker!'
});
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=MYAPIKEY&v=3&callback=initMap">
</script>
</body>
</html>