Commit 733fe2d8 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

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

parent 77e49987
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+7 −0
Original line number Diff line number Diff line
@@ -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);

+7 −0
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
<div class="row">
	<div class="col s12">
		Karte aller bisherigen Zugfahrten:
	</div>
</div>

%= include '_map', station_coordinates => $station_coordinates, station_pairs => $station_pairs