mirror of
https://github.com/derf/travelynx
synced 2024-11-10 15:04:17 +00:00
map: add legend, link to history map from history page
This commit is contained in:
parent
77e4998708
commit
733fe2d853
4 changed files with 22 additions and 1 deletions
|
@ -462,7 +462,7 @@ sub map_history {
|
|||
my @routes;
|
||||
|
||||
$self->render(
|
||||
template => 'map',
|
||||
template => 'history_map',
|
||||
with_map => 1,
|
||||
station_coordinates => \@station_coordinates,
|
||||
station_pairs => \@station_pairs
|
||||
|
|
|
@ -5,6 +5,13 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<span style="color: #f03;">●</span> Ein-/Ausstiegsstation<br/>
|
||||
<span style="color: #f09;">—</span> Luftlinie zwischen Unterwegshalten
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var map = L.map('map').setView([51.306, 9.712], 6);
|
||||
|
|
@ -27,6 +27,13 @@
|
|||
</div>
|
||||
% }
|
||||
|
||||
<h2>Auswertungen</h2>
|
||||
<div class="row">
|
||||
<div class="col s12 m12 l12 center-align">
|
||||
<a href="/history/map" class="waves-effect waves-light btn"><i class="material-icons left">map</i> Fahrtenkarte</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Ausfälle und Verspätungen</h2>
|
||||
<div class="row">
|
||||
<div class="col s12 m12 l5 center-align">
|
||||
|
|
7
templates/history_map.html.ep
Normal file
7
templates/history_map.html.ep
Normal file
|
@ -0,0 +1,7 @@
|
|||
<div class="row">
|
||||
<div class="col s12">
|
||||
Karte aller bisherigen Zugfahrten:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
%= include '_map', station_coordinates => $station_coordinates, station_pairs => $station_pairs
|
Loading…
Reference in a new issue