-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
72 lines (57 loc) · 1.83 KB
/
index.php
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<title>Richard Leishman UK Air Space</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<style>
html, body {
height: 100%;
padding: 0;
margin: 0;
}
#map_wrapper {
height: 100%;
}
#map_canvas {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="map_wrapper">
<div id="map_canvas"></div>
</div>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBbLcVkjlHKGAh3OyyaATu9qYYC8Lr6_jA"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marker-animate-unobtrusive/0.2.8/vendor/markerAnimate.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marker-animate-unobtrusive/0.2.8/SlidingMarker.min.js"></script>
<script>
function map_initialize() {
var mapOptions = {
mapTypeId: 'roadmap',
maxZoom: 17,
streetViewControl: false,
};
map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
map.setCenter({lat: 52.8, lng: -0.7});
map.setZoom(8);
// if (typeof window.orientation !== 'undefined') {
// // mobile
// map.setZoom(8);
// } else {
// // desktop
// map.setZoom(9);
// }
// KML
var src = 'https://devfwd.com/ukairmap/ukairspace.kml?' + Math.random();
var kmlLayer = new google.maps.KmlLayer(src, {
suppressInfoWindows: false,
preserveViewport: true,
map: map
});
}
map_initialize();
</script>
</body>
</html>