-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
160 lines (151 loc) · 4.44 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html>
<head>
<title>Map Haldwani</title>
<meta charset="utf-8" />
<meta
name="viewport"
content="initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui"
/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="media/apple-touch-icon.png"
/>
<link
rel="apple-touch-icon-precomposed"
href="media/apple-touch-icon.png"
/>
<link
rel="apple-touch-startup-image"
href="media/apple-touch-icon.png"
/>
<meta name="apple-mobile-web-app-title" content="Map Haldwani" />
<meta name="mobile-web-app-capable" content="yes" />
<link rel="shortcut icon" href="media/android-chrome-192x192.png" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="media/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="media/favicon-16x16.png"
/>
<link rel="manifest" href="site.webmanifest" />
<link href="style.css" rel="stylesheet" />
<link href="css/sidebar.css" rel="stylesheet" />
<link href="css/mapillary.css" rel="stylesheet" />
<link href="css/control.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<link
href="https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.css"
rel="stylesheet"
/>
<script src="https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.js"></script>
<script src="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.0/mapbox-gl-geocoder.min.js"></script>
<link
rel="stylesheet"
href="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.0/mapbox-gl-geocoder.css"
type="text/css"
/>
<link
href="https://watergis.github.io/mapbox-gl-export/mapbox-gl-export.css"
rel="stylesheet"
/>
<script src="https://watergis.github.io/mapbox-gl-export/mapbox-gl-export.js"></script>
<script src="https://assets.what3words.com/sdk/v3/what3words.js?key=M4GPV3HS"></script>
<script type="text/javascript" src="vendor/mapStyles.json"></script>
<script src="https://unpkg.com/mapillary-js@4.1.1/dist/mapillary.js"></script>
<link
href="https://unpkg.com/mapillary-js@4.1.1/dist/mapillary.css"
rel="stylesheet"
/>
<script src="vendor/control.js"></script>
<script src="vendor/map-style.js"></script>
<script src="vendor/mapillary.js"></script>
<script src="vendor/geocoder.js"></script>
<script src="vendor/mapbox-gl-traffic.js"></script>
</head>
<body>
<div class="loader">
<div>
<p class="loading text">
<image id="load-logo" src="media\logo.png"></image>
<b id="load-text">Map Haldwani</b>
</p>
<p class="loading">
<image src="media\loader.gif" width="50px"></image>
</p>
</div>
</div>
<div class="content">
<div id="mapWindow" class="mainWindow">
<div id="map">
<div
id="leftSidebar"
class="sidebar flex-center left collapsed"
>
<div
id="leftSidebarBox"
class="sidebar-content rounded-rect sidebarLoading"
>
<div id="leftSidebarContent"></div>
<div
class="sidebar-toggle left"
onclick="sidebarClose()"
>
✕
</div>
</div>
</div>
</div>
<div id="geocoder" class="geocoder"></div>
</div>
<div id="imageWindow" class="subWindow">
<div
id="mapillaryWindowToggleButton"
onclick="toggleMapImageWindow()"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512"
id="mapillaryWindowToggleButtonIcon"
>
<path
d="M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"
/>
</svg>
</div>
<div
id="mapillaryWindowMinimizeButton"
onclick="minimizeMapImageWindow()"
></div>
<div id="mapillaryWindowDiv">
<div id="mapillaryWindow"></div>
<image
src="media\loader.gif"
id="mapillaryWindowLoader"
></image>
</div>
</div>
</div>
<script>
function delay(time) {
return new Promise((resolve) => setTimeout(resolve, time));
}
$(window).on("load", function () {
delay(1000).then(() => {
$(".loading").fadeOut(200);
$(".loader").fadeOut(1000);
});
});
</script>
<script src="script.js"></script>
</body>
</html>