-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.html
159 lines (132 loc) · 8.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="https://pepadb.us.es/imagenes_app/meta_icon_geoviewer.png " type="image/x-icon">
<title>PEPAdb geoviewer</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet-rotatedmarker/dist/leaflet.rotatedMarker.css">
<link rel="stylesheet" href="https://unpkg.com/leaflet.locatecontrol/dist/L.Control.Locate.min.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet-easyprint/dist/bundle.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet-easybutton@2.4.0/src/easy-button.css" />
<!-- Include Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<!-- Use the latest version of Leaflet Search plugin -->
<link rel="stylesheet" href="https://unpkg.com/leaflet-search@3.0.5/dist/leaflet-search.min.css" />
<!-- Include Leaflet.MousePosition plugin -->
<link rel="stylesheet" href="https://unpkg.com/leaflet-mouse-position/src/L.Control.MousePosition.css" />
<link rel="stylesheet" href="css/map.css">
</head>
<body>
<!-- Bootstrap Navbar -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#" style="font-weight: bold; cursor: default;">
PEPAdb cartographic viewer
</a>
<!-- Button to toggle the navigation links on smaller screens -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Navigation Links -->
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" target="_blank" href="https://pepadb.us.es/">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-link" target="_blank" href="https://github.com/GaloRomero/pepadbGeoviewer">Documentation <span class="sr-only">(current)</span></a>
</li>
</ul>
</div>
</nav>
<div id="map" style="height: 85vh;"></div>
<!-- Filter icon to toggle the filter panel -->
<div id="filterIcon" title="Filter by raw material"><i class="fas fa-filter"></i></div>
<!-- Filter panel -->
<div class="filter-panel" id="filterPanel">
<table class="table table-bordered" >
<thead>
<tr style="background-color: #fff;">
<th colspan="3" class="text-center"><h4>Raw Material</h4></th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-left" style="width: 33.33%;"><label><input type="checkbox" id="amberCheckbox"> Amber</label></td>
<td class="text-left" style="width: 33.33%;"><label><input type="checkbox" id="boneCheckbox"> Bone</label></td>
<td class="text-left" style="width: 33.33%;"><label><input type="checkbox" id="ceramicCheckbox"> Ceramic</label></td>
</tr>
<tr>
<td class="text-left" style="width: 33.33%;"><label><input type="checkbox" id="coralCheckbox"> Coral</label></td>
<td class="text-left" style="width: 33.33%;"><label><input type="checkbox" id="fossilCheckbox"> Fossil</label></td>
<td class="text-left" style="width: 33.33%;"><label><input type="checkbox" id="ivoryCheckbox"> Ivory</label></td>
</tr>
<tr>
<td class="text-left" style="width: 33.33%;"><label><input type="checkbox" id="ligniteCheckbox"> Lignite</label></td>
<td class="text-left" style="width: 33.33%;"><label><input type="checkbox" id="rockCheckbox"> Rock</label></td>
<td class="text-left" style="width: 33.33%;"><label><input type="checkbox" id="seedCheckbox"> Seed</label></td>
</tr>
<tr>
<td class="text-left" style="width: 33.33%;"><label><input type="checkbox" id="shellCheckbox"> Shell</label></td>
<td class="text-left" style="width: 33.33%;"><label><input type="checkbox" id="woodCheckbox"> Wood</label></td>
<td class="special-td" style="width: 33.33%;"></td>
</tr>
<tr style="background-color: #f9f9f9;">
<td colspan="3" class="text-center">
<button class="btn btn-no-shadow" id="applyFilterBtn">Apply Filter</button>
<button class="btn btn-no-shadow" id="removeFilterBtn">Remove Filter</button>
<button class="btn btn-no-shadow" id="downloadGeoJsonBtn">Download GeoJSON <i class="fas fa-download"></i></button>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Lateral panel for upload button -->
<div id="uploadPanel">
<h2>Add your data!</h2> <!-- Title for the panel -->
<button id="uploadButton">
Upload GeoJSON
<!-- Insert icon inside the button -->
<i id="uploadIcon" class="fas fa-upload"></i>
</button>
<input type="file" id="fileInput" accept=".json, .geojson">
</div>
<footer class=" text-center text-white">
</footer>
<!-- Copyright -->
<div class="container-fluid text-center text-dark p-3" style="background-color: #c5c5c5; display: table;">
<p style="display: table-cell;" xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><span property="dct:title">PEPAdb geoviewer and data</span> are licensed under <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-SA 4.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1"></a></p>
</div>
<!-- Copyright -->
<script type="text/javascript" id="cookieinfo"
src="//cookieinfoscript.com/js/cookieinfo.min.js"
data-font-family="Varela, arial, sans-serif"
data-bg="#3c3c3b"
data-link="#c4c4c4"
data-fg="#FFFFFF"
data-divlink="#000000"
data-divlinkbg="#c4c4c4"
data-link="#F1D600"
data-cookie="CookieInfoScript"
data-text-align="center"
data-close-text="Got it!">
</script>
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
<script src="https://unpkg.com/leaflet-rotatedmarker/dist/leaflet.rotatedMarker.js"></script>
<script src="https://unpkg.com/leaflet.locatecontrol/dist/L.Control.Locate.min.js"></script>
<script src="https://unpkg.com/leaflet-easyprint/dist/bundle.js"></script>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/leaflet-easybutton@2.4.0/src/easy-button.js"></script>
<!-- Use the latest version of Leaflet Search plugin -->
<script src="https://unpkg.com/leaflet-search@3.0.5/dist/leaflet-search.min.js"></script>
<!-- Include Leaflet.MousePosition plugin -->
<script src="https://unpkg.com/leaflet-mouse-position/src/L.Control.MousePosition.js"></script>
<script src="js/map.js"></script>
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/227bad09bb.js" crossorigin="anonymous"></script>
</body>
</html>