forked from ftlabs/fastclick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path44.html
56 lines (52 loc) · 1.88 KB
/
44.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
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html>
<head>
<title>#36</title>
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="telephone=no" name="format-detection" />
<style type="text/css">
p { font-family: sans-serif; }
input { height: 30px; }
p, input { margin: 0; padding: 0; }
#map {width: 450px; height: 400px; }
</style>
<script src="http://maps.google.com/maps/api/js?sensor=false&.js" type="application/javascript"></script>
<script src="http://google-maps-utility-library-v3.googlecode.com/svn/tags/infobox/1.1.9/src/infobox.js" type="application/javascript"></script>
<script src="../lib/fastclick.js" type="application/javascript"></script>
<script type="application/javascript">
window.addEventListener('load', function() {
new FastClick(document.body);
var map;
var elevator;
var myOptions = {
zoom: 6,
center: new google.maps.LatLng(46.87916, -3.32910),
mapTypeId: 'terrain'
};
map = new google.maps.Map(document.getElementById('map'), myOptions);
var markers = [];
// Add a listener for idle event and call getElevation on a random set of marker in the bound
google.maps.event.addListener(map, 'idle', function()
{
var marker = new google.maps.Marker({
position: new google.maps.LatLng(46.87916, -3.32910),
map: map,
title:"Hello World!"
});
var infowindow = new InfoBox({
content: "Touch me on your iDevice"
});
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map,marker);
});
});
}, false);
</script>
</head>
<body>
<p>Tap the map marker.</p>
<hr />
<div id="map"></div>
</body>
</html>