map: add legend, link to history map from history page

This commit is contained in:
Daniel Friesel 2019-11-16 15:57:09 +01:00
parent 77e4998708
commit 733fe2d853
4 changed files with 22 additions and 1 deletions

View file

@ -462,7 +462,7 @@ sub map_history {
my @routes; my @routes;
$self->render( $self->render(
template => 'map', template => 'history_map',
with_map => 1, with_map => 1,
station_coordinates => \@station_coordinates, station_coordinates => \@station_coordinates,
station_pairs => \@station_pairs station_pairs => \@station_pairs

View file

@ -5,6 +5,13 @@
</div> </div>
</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> <script>
var map = L.map('map').setView([51.306, 9.712], 6); var map = L.map('map').setView([51.306, 9.712], 6);

View file

@ -27,6 +27,13 @@
</div> </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> <h2>Ausfälle und Verspätungen</h2>
<div class="row"> <div class="row">
<div class="col s12 m12 l5 center-align"> <div class="col s12 m12 l5 center-align">

View 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