summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2023-09-12 18:26:15 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2023-09-12 18:26:15 +0200
commit434eb5a18dc51d6c9cf7de67fcff216a3f9a8b57 (patch)
treedd8ec545674123b07d3b26b5d277312e45949010
parent31f82756261977e8140475b2002624802faa4bd8 (diff)
map: use high beeline opacity if no polylines are available2.2.1
-rwxr-xr-xlib/Travelynx.pm6
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 ),