diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index a6080b2..b08593f 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -2335,7 +2335,11 @@ sub startup { { polylines => $json->encode( \@station_pairs ), color => '#673ab7', - opacity => $with_polyline ? 0.4 : 0.6, + opacity => @polylines + ? $with_polyline + ? 0.4 + : 0.6 + : 0.8, }, { polylines => $json->encode( \@polylines ), |