summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Traveling.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travelynx/Controller/Traveling.pm')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm
index 70d701b..198d66e 100755
--- a/lib/Travelynx/Controller/Traveling.pm
+++ b/lib/Travelynx/Controller/Traveling.pm
@@ -446,7 +446,7 @@ sub map_history {
template => 'history_map',
with_map => 1,
station_coordinates => [],
- station_pairs => [],
+ polyline_groups => [],
);
return;
}
@@ -528,7 +528,14 @@ sub map_history {
template => 'history_map',
with_map => 1,
station_coordinates => \@station_coordinates,
- station_pairs => \@station_pairs,
+ polyline_groups => [
+ {
+ polylines => \@station_pairs,
+ color => '#673ab7',
+ opacity => 0.6,
+ fit_bounds => 1,
+ }
+ ]
);
}