-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaps.html
39 lines (37 loc) · 1.11 KB
/
maps.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
39
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
html, body, #map-canvas { height: 100%; margin: 0; padding: 0;}
</style>
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBg1glI6wrkC32xuaZSaYrHGmv4-0WiarQ">
</script>
<script type="text/javascript">
function initialize() {
var mapOptions = {
center: { lat: 38.299099, lng: -122.018707},
zoom: 16
};
var map = new google.maps.Map(document.getElementById('map-canvas'),
mapOptions);
var myLatlng = new google.maps.LatLng(38.299099,-122.018707);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title:"Headquarters"
});
var otherLatlng = new google.maps.LatLng(38.300521, -122.015627);
var otherMarker = new google.maps.Marker({
position: otherLatlng,
map: map,
title:"OtherHeadquarters"
});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id="map-canvas"></div>
</body>
</html>