-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (39 loc) · 1006 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
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
html, body { height: 100%; margin: 0; padding: 0;
background-color: lightblue; }
h1 {
text-align: center;
color: dodgerblue;
}
#map { height: 80%;
width:80%;
margin:auto; }
</style>
</head>
<body>
<h1>Aqui esta mi casa en google map</h1>
<div id="map"></div>
<script type="text/javascript">
var map;
function initMap() {
var myLatLng={lat: 13.4919, lng: -88.1686}
map = new google.maps.Map(document.getElementById('map'), {
center: myLatLng,
zoom: 17
});
//var map = new google.maps.Map(document.getElementById("map"), mapOptions);
var marker = new google.maps.Marker({
position: myLatLng,
map:map,
title:"El google map de mi casa!"
});
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB1ZI9beZ09b9RcECXsgtzXQUeQoHk_GB4&callback=initMap">
</script>
</body>
</html>