generated from HandsOnDataViz/leaflet-storymaps-with-google-sheets
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
122 lines (98 loc) · 4.39 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
<!DOCTYPE html>
<html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-56LVQXEMK1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-56LVQXEMK1');
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<link rel="icon" type="image/png" href="./favicon.png">
<title>Leaflet Storymap</title>
<!-- Load Leaflet CSS and JS-->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script>
<!-- Load Leaflet basemap providers -->
<!--<script src="https://unpkg.com/[email protected]/leaflet-providers.js"></script>-->
<script src="scripts/leaflet-providers.js"></script>
<!-- Load jQuery -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<!-- Load PapaParse -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/papaparse.min.js"></script>
<!-- Load Lightbox -->
<script src="scripts/lightbox/js/lightbox.js"></script>
<link rel="stylesheet" href="scripts/lightbox/css/lightbox.css" />
<!-- Load Font-Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<!-- Load other CSS styles-->
<!--<link rel="stylesheet" href="markers/leaflet.extra-markers.min.css">-->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/style-desktop.css">
<link rel="stylesheet" href="css/style-mobile.css">
<link rel="stylesheet" href="css/style-print.css">
<link rel="stylesheet" href="css/loader.css">
<!-- Load selected Google Fonts -->
<!--<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Libre%20Franklin:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&display=swap">-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap">
<!-- Load Stamen tile layers -->
<!--<script src="http://maps.stamen.com/js/tile.stamen.js"></script>-->
<!--<script src="https://stamen-maps.a.ssl.fastly.net/js/tile.stamen.js"></script>-->
</head>
<body>
<div id="narration">
<div id="title">
<div id="back-to-top">↑</div>
<div id="logo"></div>
</div>
<div id="contents">
<div id="header"></div> <!-- moved this into the scrolling contents area -->
<div id="nav"></div>
<div id="top"></div>
</div>
</div>
<div class="loader">Loading...</div>
<div id="map"></div>
<script type="text/javascript">
// Create the Leaflet map with a generic start point
var map = L.map('map', {
center: [0, 0],
zoom: 1,
minZoom: 2,
maxZoom: 16,
scrollWheelZoom: false,
zoomControl: false,
tap: false,
});
var southWest = L.latLng(-90, -9999),
northEast = L.latLng(90, 9999);
var bounds = L.latLngBounds(southWest, northEast);
map.setMaxBounds(bounds);
map.on('drag', function() {
map.panInsideBounds(bounds, { animate: false });
});
</script>
<div id="legend">
<img id="legend-image" src="" />
</div>
<div id="non-map-content">
<div id="non-map-content-inner"></div>
</div>
<!-- <div id="map-overlay"></div>-->
<script type="text/javascript" src="google-doc-url.js"></script>
<script type="text/javascript" src="markers/leaflet.extra-markers.min.js"></script>
<script type="text/javascript" src="scripts/constants.js"></script>
<script type="text/javascript" src="scripts/jquery.csv.js"></script>
<script type="text/javascript" src="scripts/storymap.js"></script>
<!-- load vanilla-lazyload for lazy loading images -->
<script type="text/javascript" src="scripts/lazyload.min.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/lazyload.min.js"></script> -->
</body>
</html>