From 434eb5a18dc51d6c9cf7de67fcff216a3f9a8b57 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 12 Sep 2023 18:26:15 +0200 Subject: map: use high beeline opacity if no polylines are available --- lib/Travelynx.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ), -- cgit v1.2.3