-
Notifications
You must be signed in to change notification settings - Fork 0
/
map.html
407 lines (323 loc) · 11.7 KB
/
map.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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--- Manifest --->
<link rel="manifest" href="manifest.webmanifest">
<!-- include PWACompat _after_ your manifest -->
<script async src="js/pwacompat.min.js"></script>
<!-- Turbolinks -->
<script src="js/turbolinks.js"></script>
<script>
//var Turbolinks = require("turbolinks")
Turbolinks.start()
</script>
<title>Aloft: A Sailor's Resource Guide</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="css/custom.min.css">
<!--- Google Fonts --->
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300,700|Roboto:300,500&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=PT+Sans:700i&display=swap" rel="stylesheet">
<!--- Font Awesome --->
<link rel="stylesheet" href="css/all.min.css">
<!---Slidebars CSS --->
<link rel="stylesheet" href="css/slidebars.min.css">
</head>
<body class="bg-white">
<div class="side-shadow scroll-container" canvas="container">
<div class="nice-scroll">
<!----Top Page Jumbotron---->
<div class="container-fluid top-page-jumbo-alt bg-light px-0" id="">
<div class="col-lg-8 col-md-10 col-sm-12 mx-auto mb-0 py-2 d-flex flex-row align-items-center justify-content-between">
<h1 class="mb-0"><span class="font-weight-light font-green mr-n2">go</span><span
class="font-blue logo">ALOFT</span></h1>
<p class="mb-0 font-blue font-weight-light">Welcome Sailor</p>
</div>
</div>
<!----Google Location Map---->
<div class="container-fluid bg-blue pt-3 results-container" id="google-map">
<div class="col-lg-8 col-md-10 col-sm-12 mx-auto px-2 py-1">
<h2 class="display-4 font-white mb-0">Discover Tall Ships</h2>
<h2 class="font-white font-weight-light mb-0">Home Port</h2>
<p class="font-weight-light font-lt-white mb-2">Click<i class="fas fa-map-marker-alt px-2"></i> to
view
Quick Stats</p>
<!--The div element for the map -->
<div id="map"></div>
<script>
var map;
var InforObj = [];
var centerCords = {
lat: 39.810407,
lng: -98.556317
};
var iconBase =
'img/';
var icons = {
logo: {
icon: iconBase + 'map-marker-aloft.png'
}
}
var features = [{
placeName: "Timberwind",
type: 'logo',
cityState: 'Portland, ME',
LatLng: [{
lat: 43.655900,
lng: -70.248276
}]
},
{
placeName: "Bagheera",
type: 'logo',
cityState: 'Portland, ME',
LatLng: [{
lat: 43.656587,
lng: -70.248334
}]
},
{
placeName: "Wendameen",
type: 'logo',
cityState: 'Portland, ME',
LatLng: [{
lat: 43.656498,
lng: -70.248211
}]
},
{
placeName: "Appledore II (Winter)",
type: 'logo',
cityState: 'Key West, FL',
LatLng: [{
lat: 24.561135,
lng: -81.801849
}]
},
{
placeName: "Liberty Clipper",
type: 'logo',
cityState: 'Boston, MA',
LatLng: [{
lat: 42.359526,
lng: -71.048946
}]
},
{
placeName: "AJ Meerwald",
type: 'logo',
cityState: 'Bivalve, NJ',
LatLng: [{
lat: 39.233452,
lng: -75.033607
}]
},
{
placeName: "Liberty Star",
type: 'logo',
cityState: 'Boston, MA',
LatLng: [{
lat: 42.359543,
lng: -71.048615
}]
},
{
placeName: "Tallship Windy",
type: 'logo',
cityState: 'Navy Pier, Chicago, IL',
LatLng: [{
lat: 41.892190,
lng: -87.604969
}]
},
{
placeName: "Schooner Stephen Taber",
type: 'logo',
cityState: 'San Fransisco, CA',
LatLng: [{
lat: 37.800715,
lng: -122.396948
}]
},
{
placeName: "Appledore II (Summer)",
type: 'logo',
cityState: 'Camden, ME',
LatLng: [{
lat: 44.210332,
lng: -69.064164
}]
},
];
window.onload = function () {
initMap();
};
function addMarker() {
for (var i = 0; i < features.length; i++) {
var contentString = '<h5 class="mb-1">' + features[i].placeName + '</h5><p class="font-weight-light">' + features[i].cityState + '</p><a class="paragraph-link" href=' + '"tallships.html"' + '>Learn More</a>';
const marker = new google.maps.Marker({
position: features[i].LatLng[0],
icon: icons[features[i].type].icon,
map: map
});
const infowindow = new google.maps.InfoWindow({
content: contentString,
maxWidth: 200
});
marker.addListener('click', function () {
closeOtherInfo();
infowindow.open(marker.get('map'), marker);
InforObj[0] = infowindow;
});
marker.addListener('mouseover', function () {
closeOtherInfo();
infowindow.open(marker.get('map'), marker);
InforObj[0] = infowindow;
});
//marker.addListener('mouseout', function () {
//closeOtherInfo();
//infowindow.close();
//InforObj[0] = infowindow;
//});
}
}
function closeOtherInfo() {
if (InforObj.length > 0) {
/* detach the info-window from the marker ... undocumented in the API docs */
InforObj[0].set("marker", null);
/* and close it */
InforObj[0].close();
/* blank the array */
InforObj.length = 0;
}
}
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
zoom: 3,
center: centerCords
});
addMarker();
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDxCWVMKRaE2s8rWexc3CW_sCUvcBLKLdQ&callback=initMap">
</script>
<div class="col-12 px-0 py-4 text-right">
<a href="directory.html" class="btn btn-md btn-secondary btn py-3 h-100"><i
class="fas fa-binoculars py-2"></i> <span
class="font-weight-light">View Tall Ship Directory</span></a>
</div>
</div>
</div>
<!--- API Key AIzaSyDxCWVMKRaE2s8rWexc3CW_sCUvcBLKLdQ --->
</div>
<!---End of nice scroll container-->
</div>
<!--------- End of Main Page Content Canvas ------>
<!--- Fixed Header and Search Container ***Moved to the bottom of the page and both footer and header maintain fixed position*** --->
<!---Page Heading --->
<div class="fixed-top" canvas="">
<div class="d-flex flex-row align-items-center px-3 py-1 bg-blue">
<div class="font-green d-flex flex-row">
<button class="btn btn-history font-weight-light font-small" type="button"
onclick="history.back(-1);"><i class="fas fa-arrow-left fa-1x"></i></button>
</div>
<div class="ml-auto">
<a href="profile.html" class="nav-link"><i class="fas fa-user-circle fa-2x"></i></a>
</div>
<div class="">
<a href="settings.html" class="nav-link"><i class="fas fa-cog fa-2x"></i></a>
</div>
</div>
<div class="container-fluid bg-green shadow search-container">
<!----Section Headings---->
<div class="col-lg-8 col-md-10 col-sm-12 mx-auto pt-3 pb-1">
</div>
</div>
</div>
<!----------- End of Fixed Header Container ----------->
<!------ Fixed Footer Menu --------->
<footer class="navbar fixed-bottom navbar-dark bg-blue top-shadow" id="menu" canvas="">
<!--- Bottom Hamburger Toggle Icon --->
<button type="button" class="toggle-button btn btn-lg font-white" data-toggle="button" aria-pressed="false"
autocomplete="off">☰</button>
<!--- Bottom Navbar Icons --->
<a href="dock.html" class="navlink"><i class="fas fa-home fa-2x"></i></a>
<div class=""><span class="font-weight-light font-lt-white mr-n1">go</span><span
class="font-white logo">ALOFT</span></div>
<a href="#" class="btm-nb-i"><i class="fas fa-bell fa-2x"></i></a>
<a href="index.html" class="btm-nb-i"><i class="fas fa-sign-out-alt fa-2x"></i></a>
</footer>
<nav class="" id="navbar-main" off-canvas="left-nav left reveal">
<!--- Navbar Collapse Items --->
<div class="p-0" style="height: 100vh;">
<div class="h-100 navbar-nav d-flex flex-column justify-content-between navbar-padding" id="">
<div class="pl-3 border-bottom nav-item d-flex align-items-center h-100 text-uppercase active ">
<a class="nav-link" href="settings.html"><i class="fas fa-cog"></i> <span
class="font-weight-light">Settings</span><span class="sr-only">(current)</span></a>
</div>
<div class="pl-3 border-bottom nav-item d-flex align-items-center h-100 text-uppercase active ">
<a class="nav-link" href="profile.html"><i
class="fas fa-user-circle"></i> <span
class="font-weight-light">Profile</span><span class="sr-only">(current)</span></a>
</div>
<div class="pl-3 border-bottom nav-item d-flex align-items-center h-100 text-uppercase">
<a class="nav-link disabled" href="#"><i class="fas fa-life-ring"></i> <span
class="font-weight-light">Help</span></a>
</div>
<div class="pl-3 border-bottom d-flex align-items-center h-100 nav-item">
<a class="nav-link disabled" href="#"><span
class="font-weight-light mr-2 text-uppercase">About</span><span
class="font-weight-light font-lt-white mr-n1">go</span><span
class="font-white logo">ALOFT</span></a>
</div>
<div class="nav-hover pl-3 border-bottom d-flex align-items-center h-100 nav-item text-uppercase">
<a class="nav-link" href="resources.html"><i
class="fas fa-book pl-2"></i> <span class="font-weight-light">Sailing
Resources</span></a>
</div>
<div class="nav-hover pl-3 border-bottom d-flex align-items-center h-100 nav-item text-uppercase">
<a class="nav-link" href="directory.html"><i
class="fas fa-binoculars pl-2"></i> <span
class="font-weight-light">Discover Tall Ships</span></a>
</div>
<div class="nav-hover pl-3 border-bottom d-flex align-items-center h-100 nav-item text-uppercase">
<a class="nav-link" href="map.html"><i
class="fas fa-map-marked pl-2"></i> <span
class="font-weight-light">Explore Map</span></a>
</div>
<div class="nav-hover pl-3 border-bottom d-flex align-items-center h-100 nav-item text-uppercase">
<a class="nav-link" href="listings.html"><i
class="fas fa-search pl-2"></i> <span class="font-weight-light">Job
Listings</span></a>
</div>
<div class="nav-hover pl-3 d-flex align-items-center h-100 nav-item text-uppercase">
<a class="nav-link" href="index.html"><i
class="fas fa-sign-out-alt pl-2"></i> <span
class="font-weight-light">Sign Out</span></a>
</div>
</div>
</div>
</nav>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="js/jquery.min.js"></script>
<script src="js/popper.min.js">
</script>
<script src="js/bootstrap.min.js">
</script>
<!-- Plug-ins -->
<script src="js/slidebars.min.js"></script>
<script src="js/lazyload.min.js"></script>
<script src="js/jquery.nicescroll.min.js"></script>
<!-- Custom JS-->
<script src="js/custom.js"></script>
<!--- Service Workder --->
<script src="sw.js"></script>
</body>
</html>