add complete-ish sidebar scaffold
This commit is contained in:
parent
56f4940d63
commit
39e055592a
|
@ -5,7 +5,7 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="stylesheet" href="w3.css">
|
<link rel="stylesheet" href="w3.css">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<link href="fontawesome/5.3.1/css/all.css" rel="stylesheet">
|
<link href="fontawesome/6.4.0/css/all.css" rel="stylesheet">
|
||||||
<!--self-served leaflet-->
|
<!--self-served leaflet-->
|
||||||
<link rel="stylesheet" href="leaflet/Leaflet-1.9.4/leaflet.css">
|
<link rel="stylesheet" href="leaflet/Leaflet-1.9.4/leaflet.css">
|
||||||
<link rel="stylesheet" href="leaflet/leaflet-sidebar-v2/css/leaflet-sidebar.css">
|
<link rel="stylesheet" href="leaflet/leaflet-sidebar-v2/css/leaflet-sidebar.css">
|
||||||
|
@ -18,7 +18,11 @@
|
||||||
<!-- top aligned tabs -->
|
<!-- top aligned tabs -->
|
||||||
<ul role="tablist">
|
<ul role="tablist">
|
||||||
<li><a href="#home" role="tab"><i class="fa fa-bars active"></i></a></li>
|
<li><a href="#home" role="tab"><i class="fa fa-bars active"></i></a></li>
|
||||||
<li><a href="#autopan" role="tab"><i class="fa fa-arrows"></i></a></li>
|
<li><a href="#tree" role="tab"><i class="fa fa-tree"></i></a></li>
|
||||||
|
<li><a href="#barrio" role="tab"><i class="fa fa-tents"></i></a></li>
|
||||||
|
</ul>
|
||||||
|
<ul role="tablist">
|
||||||
|
<li><a href="#user" role="tab"><i class="fa fa-user"></i></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -30,9 +34,33 @@
|
||||||
<span class="leaflet-sidebar-close"><i class="fa fa-caret-left"></i></span>
|
<span class="leaflet-sidebar-close"><i class="fa fa-caret-left"></i></span>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p>A map designed to collect histories of Hambi treehouses</p>
|
<p>A map designed to collect histories of Hambi treehouses</p>
|
||||||
</div><!--sidebar-pane home-->
|
</div><!--sidebar-pane home-->
|
||||||
</div><!--sidebar-content-->
|
<div class="leaflet-sidebar-pane" id="tree">
|
||||||
|
<h1 class="leaflet-sidebar-header">
|
||||||
|
Treehouse (form)
|
||||||
|
<span class="leaflet-sidebar-close"><i class="fa fa-caret-left"></i></span>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<p>Here you'll see a form to enter a new treehouse or the data about existing ones, depending on mode</p>
|
||||||
|
</div><!--sidebar-pane tree_form-->
|
||||||
|
<div class="leaflet-sidebar-pane" id="barrio">
|
||||||
|
<h1 class="leaflet-sidebar-header">
|
||||||
|
Barrio (form)
|
||||||
|
<span class="leaflet-sidebar-close"><i class="fa fa-caret-left"></i></span>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<p>Here you'll see a form to enter a new barrio or the data about existing ones, depending on mode</p>
|
||||||
|
</div><!--sidebar-pane barrio_form-->
|
||||||
|
<div class="leaflet-sidebar-pane" id="user">
|
||||||
|
<h1 class="leaflet-sidebar-header">
|
||||||
|
Login
|
||||||
|
<span class="leaflet-sidebar-close"><i class="fa fa-caret-left"></i></span>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<p>here you'll see a login or user registration form, that we need for moderation privileges, and can use to save color/author name settings</p>
|
||||||
|
</div><!--sidebar-pane barrio_form-->
|
||||||
|
</div><!--sidebar-content-->
|
||||||
</div><!--sidebar-->
|
</div><!--sidebar-->
|
||||||
|
|
||||||
<div id="map" style="height: 100vh;"></div>
|
<div id="map" style="height: 100vh;"></div>
|
||||||
|
@ -43,7 +71,7 @@
|
||||||
<script src="leaflet/leaflet-sidebar-v2/js/leaflet-sidebar.js"></script>
|
<script src="leaflet/leaflet-sidebar-v2/js/leaflet-sidebar.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var map = L.map('map').setView([50.880301, 6.560531], 13,);
|
var map = L.map('map').setView([50.880301, 6.560531], 13,);
|
||||||
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { minZoom: 12, maxZoom: 19, attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>' }).addTo(map);
|
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { minZoom: 12, maxZoom: 19, attribution: 'Map data: © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>' }).addTo(map);
|
||||||
|
|
||||||
var barrio_markers = L.layerGroup(); //overlay where all barrio markers will be added
|
var barrio_markers = L.layerGroup(); //overlay where all barrio markers will be added
|
||||||
var tree_markers = L.layerGroup(); //overlay where all tree(house) markers will be added
|
var tree_markers = L.layerGroup(); //overlay where all tree(house) markers will be added
|
||||||
|
|
Loading…
Reference in a new issue