This repository has been archived by the owner on Oct 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
125 lines (108 loc) · 5.47 KB
/
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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="width=device-width, initial-scale=1, maximum-scale=1.0" name="viewport">
<title>Reworked airports map - Infinite Flight Airport Editing</title>
<meta content="en" name="language">
<meta content="A map of all reworked airports included in the mobile flight simulator, Infinite Flight.">
<meta content="Infinite Flight, Airport Editing, IFAE, Infinite Flight Airport Editing, IF airport editing, airports, editing, IF, Infinite Flight Community, map, airport map, global flight, airport global" name="keywords">
<meta content="#192229" name="theme-color">
<meta content="index, follow" name="robots">
<link href="images/airport-editing.png" rel="shortcut icon" type="image/png">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="css/materialize.css" media="screen,projection" rel="stylesheet" type="text/css">
<link href="css/style.css" media="screen,projection" rel="stylesheet" type="text/css">
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.2/mapbox-gl.css' rel='stylesheet' />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.2/mapbox-gl.js'></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-107740441-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-107740441-1');
</script>
</head>
<body>
<header>
<nav class="light-blue lighten-1" role="navigation">
<a class="brand-logo" href=""><img alt="" class="logo-img" src="images/airport-editing.png"></a>
<ul class="right hide-on-med-and-down">
<li>
<a href="#about">About</a>
</li>
</ul>
<ul class="side-nav" id="nav-mobile">
<li>
<a class="header">Reworked airports map</a>
</li>
<li>
<div class="divider"></div>
</li>
<li>
<a href="#about">About</a>
</li>
<li>
<a href="https://airportediting.com/">Infinite Flight Airport Editing</a>
</li>
<li>
<a href="https://community.infinite-flight.com/">Infinite Flight Community</a>
</li>
</ul><a class="button-collapse" data-activates="nav-mobile" href="#"><i class="material-icons">menu</i></a>
</nav>
</header>
<div class="modal modal-fixed-footer" id="about">
<div class="modal-content">
<h4>About</h4>
<div class="col-md-12">
<p>This interactive map shows all airports which have been redone by the <a href="https://airportediting.com/" target="blank">Infinite Flight Airport Editing team</a>. This means that all airports you see on this map are going to be in high-quality in Infinite Flight. Any issues regarding a reworked airport? Feel free to report the issue by using <a href="https://docs.google.com/forms/d/e/1FAIpQLSfwCBqPPIkB_CPuOVWmiVQ4BhQLr3wNY6s91kvMk5CuDqW4zQ/viewform?usp=send_form" target="blank">our dedicated form</a>.</p>
<p>If you are interested in contributing to the project, please visit <a href="https://airportediting.com/" target="blank">airportediting.com</a>.</p><img class="responsive-img" src="images/airport.png">
<p><i>Latest data update:</i> 22nd November 2018<br> Website made by Adrien Zaradez.</p>
</div>
</div>
<div class="modal-footer">
<a class=" modal-action modal-close waves-effect waves-light btn-flat">Close</a>
</div>
</div>
<div id="map"></div>
<script>
mapboxgl.accessToken = 'pk.eyJ1IjoiYWRyaWVuLXoiLCJhIjoiY2l1bzZvYXp3MDAxYjJvbnoyem04ZWllYSJ9.RpSLasDbqe-QiqCje0GFrA';
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/adrien-z/cjh306api1ue32squqqhysx8g',
center: [-1.565394, 28.774876],
zoom: 1.3
});
map.on('click', function(e) {
var features = map.queryRenderedFeatures(e.point, {
layers: ['completed-airports']
});
if (!features.length) {
return;
}
var feature = features[0];
var popup = new mapboxgl.Popup({
offset: [0, -15]
})
.setLngLat(feature.geometry.coordinates)
.setHTML('<p><i>Name:</i> ' + feature.properties.Airport + '<br><i>ICAO:</i> ' + feature.properties.ICAO + '<br><i>Description:</i> ' + feature.properties.Description + '</p>')
.setLngLat(feature.geometry.coordinates)
.addTo(map);
});
</script>
<script>
$(document).ready(function() {
$('.modal').modal();
});
</script>
<script src="https://code.jquery.com/jquery-2.1.1.min.js">
</script>
<script src="js/materialize.js">
</script>
<script src="js/init.js">
</script>
</body>
</html>