-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
232 lines (220 loc) · 9.72 KB
/
index.html
File metadata and controls
232 lines (220 loc) · 9.72 KB
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
<!doctype html>
<html>
<head>
<title>ibis - Map View</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="shortcut icon" sizes="16x16 24x24 32x32 48x48 64x64 96x96 128x128" href="https://ibis.jufo.mytfg.de/favicon.ico">
<link href="fontawesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet"
href="leaflet/leaflet.css" />
<link rel="stylesheet" href="leaflet-sidebar-v2/leaflet-sidebar.min.css" />
<link rel="stylesheet" href="leaflet-contextmenu/leaflet.contextmenu.css" />
<link rel="stylesheet" href="jquery-ui/jquery-ui.min.css" />
<script type="text/javascript" src="jquery/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="leaflet/leaflet.js"></script>
<script type="text/javascript" src="leaflet-sidebar-v2/leaflet-sidebar.min.js"></script>
<script type="text/javascript" src="leaflet-contextmenu/leaflet.contextmenu.js"></script>
<script type="text/javascript" src="jquery-ui/jquery-ui.min.js"></script>
<style>
body {
padding: 0;
margin: 0;
}
html, body, #map {
height: 100%;
font: 10pt "Helvetica Neue", Helvetica, sans-serif;
}
</style>
</head>
<body style="height: 100%;">
<div id="sidebar" class="sidebar collapsed">
<!-- Nav tab(s) -->
<ul class="sidebar-tabs" role="tablist">
<li><a href="#gettrack_pane" role="tab"><i class="fa fa-map-marker"></i></a></li>
<li><a href="#routing_pane" role="tab"><i class="fa fa-location-arrow"></i></a></li>
<li><a href="#showtopo_pane" role="tab"><i class="fa fa-cloud"></i></a></li>
<li class="admin_pane_item" style="display: none;"><a href="#admin_pane" role="tab"><i class="fa fa-cogs"></i></a></li>
<li class="admin_pane_item" style="display: none;"><a href="#profile_pane" role="tab"><i class="fa fa-area-chart"></i></a></li>
<li><a href="#login_pane" role="tab"><i class="fa fa-sign-in"></i></a></li>
<li><a href="#map_pane" role="tab"><i class="fa fa-map"></i></a></li>
</ul>
<!-- Tab pane(s) -->
<div class="sidebar-content active">
<div class="sidebar-pane" id="gettrack_pane">
<h1>iBis Tracks Anzeigen</h1>
<form id="show_track">
<label for="track_select">Track(s) anzeigen</label>
<br />
<select id="track_select" multiple="multiple" size="25" style="overflow: hidden; width: 100%;">
</select>
<br />
<input type="submit" value="Tracks Anzeigen">
</form>
<br />
<form id="track_select_num_form">
<label for="track_select_num">Track Auswahl:</label>
<p id="track_select_num_p">Es sind unbekannt viele Tracks vorhanden</p>
<select id="track_select_num">
<option value="0">0..24</option>
</select>
<input type="submit" value="Wechseln">
</form>
</div>
<div class="sidebar-pane" id="routing_pane">
<h1>iBis Routing</h1>
<p>Zum Auswählen des Start und Ziel-Punktes in der Karte mittels Rechts-Klick den Start- und Ziel-Punkt festlegen!</p>
<form id="generate_route">
<table>
<tr><td colspan="2"><p id="routing_start_p">Von</p></td></tr>
<tr><td><label for="start_lat">Breite:</label></td><td><input type="text" name="start_lat" id="start_lat"></td></tr>
<tr><td><label for="start_lon">Länge:</label></td><td><input type="text" name="start_lon" id="start_lon"></td></tr>
<tr><td colspan="2"><p id="routing_end_p">Nach</p></td></tr>
<tr><td><label for="end_lat">Breite:</label></td><td><input type="text" name="end_lat" id="end_lat"></td></tr>
<tr><td><label for="end_lon">Länge:</label></td><td><input type="text" name="end_lon" id="end_lon"></td></tr>
<tr><td><label for="route_profile_latlon">Profil:</label></td><td>
<select id="route_profile_latlon">
</select>
</td></tr>
<tr><td><label for="route_optimize_latlon">Anhand von Nutzerdaten optimieren</label></td><td><input type="checkbox" name="route_optimize_latlon" id="route_optimize_latlon"></td></tr>
<tr><td> </td><td><input type="submit" value="Route generieren"></td></tr>
</table>
</form>
<hr />
<h3>Oder mittels Adresseingabe:</h3>
<form id="generate_route_2">
<table>
<tr><td><label for="start">Von</label></td><td><input type="text" name="start" id="start"></td></tr>
<tr><td><label for="end">Nach</label></td><td><input type="text" name="end" id="end"></td></tr>
<tr><td><label for="route_profile_address">Profil:</label></td><td>
<select id="route_profile_address">
</select>
</td></tr>
<tr><td><label for="route_optimize_address">Anhand von Nutzerdaten optimieren</label></td><td><input type="checkbox" name="route_optimize_address" id="route_optimize_address"></td></tr>
<tr><td> </td><td><input type="submit" value="Route generieren"></td></tr>
</table>
</form>
<hr />
<p><b>Info:</b> Die Routenberechnung ist derzeit nur in Nordrhein-Westfalen möglich.</p>
</div>
<div class="sidebar-pane" id="showtopo_pane">
<h1>iBis Kosten und Wege anzeigen</h1>
<p>Overlays anzeigen aus Daten der Routing-Datenbank</p>
<h3>In der Datenbank enthaltene Kanten visualisieren </h3>
<form id="showedges_simple">
<input type="submit" value="Visualisieren (blau)">
</form>
<h3>In der Datenbank enthaltene Kanten mit statischen Kosten visualisieren</h3>
<form id="showedges_staticcost">
<input type="submit" value="Visualisieren (farbig rot-gelb-grün)">
<br />
<label for="showedges_staticcost_profile">Profil wählen: </label>
<select id="showedges_staticcost_profile">
</select>
</form>
<h3>In der Datenbank enthaltene Kanten mit dynamische Kosten visualisieren</h3>
<form id="showedges_dyncost">
<input type="submit" value="Visualisieren (farbig rot-gelb-grün)">
</form>
</div>
<div class="sidebar-pane" id="admin_pane">
<h1>iBis Administration</h1>
<div id="admin_content_authuser" style="display: none">
<form id="admin_delete_form" onsubmit="deleteTracks()" action="#">
<label for="admin_delete_select"><h2>Track(s) löschen</h2></label>
<select id="admin_delete_select" multiple="multiple" size="25" style="overflow: hidden; width: 100%;">
</select>
<br />
<input type="submit" value="Tracks Löschen">
</form>
<br />
<form id="admin_delete_num_form">
<label for="admin_delete_num">Track Auswahl:</label>
<p id="admin_delete_num_p">Es sind unbekannt viele Tracks vorhanden</p>
<select id="admin_delete_num">
<option value="0">0..24</option>
</select>
<input type="submit" value="Wechseln">
</form>
<hr />
<h2>Dynamische Kosten</h2>
<p>Es sind <span class="processtrack_numtrack">unbekannt viele</span> viele Tracks vorhanden.
<br />Es sind dynamische Kosten für <span id="processtrack_numseg">unbekannt viele</span> Wegsegmente in der Datenbank vorhanden.<br />
<button type="button" onclick="refreshDyncostNums()">Aktualisieren</button></p>
<button type="button" onclick="deleteDyncost()">Dynamische Kosten Löschen</button>
<button type="button" onclick="calculateDyncost()">Dynamische Kosten Neu Berechnen</button>
<br />
<div id="processtrack_progress" style="display: none;">
<div id="processtrack_progressbar"></div>
<p><span id="processtrack_numtrack_processed">0</span> von <span class="processtrack_numtrack">unbekannt vielen</span> Tracks verarbeitet.
<br /><span id="processtrack_numtrack_failed">0</span> Fehler.</p>
</div>
</div>
<div id="admin_content_noauth">
<h3>Bitte zuerst Anmelden</h3>
</div>
</div>
<div class="sidebar-pane" id="profile_pane">
<h1>iBis Routing Profile</h1>
<div id="profile_content_authuser" style="display: none">
<form id="profile_select_form">
<label for="profile_select">Profil</label>
<select id="profile_select">
</select>
<input type="submit" value="Bearbeiten">
</form>
<hr />
<div id="profile_content">
<!-- dynamic content with JS -->
</div>
</div>
<div id="profile_content_noauth">
<h3>Bitte zuerst Anmelden</h3>
</div>
</div>
<div class="sidebar-pane" id="login_pane">
<h1>iBis Login</h1>
<div id="login_div">
<form id="login_form" onsubmit="loginUser()">
<label for="user_user">Admin-Benutzername:</label>
<br />
<input type="text" value="" id="login_user">
<br />
<label for="user_pw">Passwort</label>
<br />
<input type="password" value="" id="login_pw">
<br />
<input type="submit" value="Anmelden">
<br />
</form>
</div>
<div id="logout_div" style="display: none">
<form id="logout_form" onsubmit="logoutUser()">
<input type="submit" value="Abmelden">
</form>
</div>
</div>
<div class="sidebar-pane" id="map_pane">
<h1>iBis Ansicht</h1>
<h3>Alle Overlays entfernen</h3>
<form id="cleanmap_form">
<input type="submit" value="Entfernen">
</form>
<hr />
<h3>Karte auswählen</h3>
<form id="background_map_form" onsubmit="setMapGUI($('#background_map').val())">
<select id="background_map">
<option value="opencyclemap" alt="http://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png" selected>OpenCycleMap</option>
<option value="osm_mapnik" alt="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png">OpenStreetMap Mapnik</option>
<option value="opentopomap" alt="http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png">OpenTopoMap</option>
<option value="osm_hikebike" alt="https://tiles.wmflabs.org/hikebike/{z}/{x}/{y}.png">OpenStreetMap Hike & Bike</option>
</select>
<input type="submit" value="Karte verwenden">
</form>
</div>
</div>
</div>
<div id="map" class="sidebar-map"></div>
<script type="text/javascript" src="webui.js"></script>
</body>
</html>