-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
97 lines (66 loc) · 3.63 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Leaflet Point Map with Sidebar</title>
<link rel="shortcut icon" href="./media/favicon.png" type="image/x-icon" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Leaflet Point Map with Sidebar with Google Sheets">
<meta name="author" content="Picturedigits">
<!-- Read Tachyons CSS library-->
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.12.0/css/tachyons.min.css"/>
<!-- Read local CSS file -->
<link rel="stylesheet" href="./style.css"/>
<!-- Read jQuery -->
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"></script>
<!-- Read lightbox2 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lightbox2@2.11.3/dist/css/lightbox.min.css">
<script src="https://cdn.jsdelivr.net/npm/lightbox2@2.11.3/dist/js/lightbox.min.js"></script>
<!-- Read PapaParse CSV parsing library -->
<script src="https://cdn.jsdelivr.net/npm/papaparse@5.3.0/papaparse.min.js"></script>
<!-- Read Leaflet.js -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""></script>
<!-- Load Material icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Read local JavaScript files -->
<script src="./settings.js"></script>
<script src="./script.js"></script>
</head>
<body class="helvetica">
<div id="sidebar" class="vh-50 vh-100-ns w-100 w5-ns top-1-ns left-1-ns absolute-ns bg-white ph3 br1 ba b--black-10">
<header class="pt3"> <!-- edit pathname to logo, insert alt name, adjust height-->
<img src="media/logo.png" alt="your logo name" style="height: 30px;" />
<h1 class="f3 mv2"> <!-- edit title and introductory text -->
Leaflet Point Map with Sidebar
</h1>
<p>
The <a href="https://handsondataviz.github.io/leaflet-storymaps-with-google-sheets/">Leaflet Point Map with Sidebar template</a> is designed to display points as custom thumbnail photo icons, organized by category, with a sidebar to show a multi-paragraph description and multi-image gallery for each point. Create your own version by entering map data into a <a href="https://docs.google.com/spreadsheets/d/1h1rJa-fshPbuzaqabQUjIDmuM2O6f5K0KPEvaAQT568/edit#gid=0">linked Google Sheet</a> or CSV file, and uploading it into a free GitHub repository to host online. Learn more in our book, Hands-On Data Visualization.
</p>
</header>
<article id="placeInfo" class="dn">
<span id="closeButton" class="material-icons db fr black-40 dim" style="cursor: pointer">close</span>
<h2 class="f4 mv1"></h2>
<h3 class="f5 black-60 mv1"></h3>
<div id="gallery"></div>
<div id="description"></div>
<a id="googleMaps" class="shadow-1 mv3 pa3 dn" href="" target="_blank">
<span class="material-icons dtc v-mid pa2 pr3">location_on</span>
<span class="dtc v-mid">View directions and hours on Google Maps</span>
</a>
</article>
<footer class="black-50 f6 pv3">
Add more information about this map in this footer.
</footer>
</div>
<!-- Map container -->
<div id="map" class="vh-50 vh-100-ns vw-100"></div>
</body>
</html>