-
Notifications
You must be signed in to change notification settings - Fork 0
/
maps.html
39 lines (34 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>
<script src="http://maps.googleapis.com/maps/api/js"></script>
<script>
var map;
function drawMap() {
var myLocation = new google.maps.LatLng(52.414131, 16.900748);
var mapProp = {
center: myLocation,
zoom: 18,
mapTypeId: google.maps.MapTypeId.HYBRID
};
map = new google.maps.Map(document.getElementById("googleMap"), mapProp);
var marker = new google.maps.Marker({
position: myLocation,
map: map,
title: 'IOKI Pearson Office',
animation: google.maps.Animation.BOUNCE
});
var infowindow = new google.maps.InfoWindow({
content: "IOKI Pearson Office"
});
document.addEventListener('click', function () {
infowindow.open(map, marker);
});
}
document.addEventListener('DOMContentLoaded', drawMap);
</script>
</head>
<body>
<div id="googleMap" style="width:500px;height:380px;"></div>
</body>
</html>