map: use high beeline opacity if no polylines are available

This commit is contained in:
Birte Kristina Friesel 2023-09-12 18:26:15 +02:00
parent 31f8275626
commit 434eb5a18d
No known key found for this signature in database
GPG key ID: B63118F7196EA660

View file

@ -2335,7 +2335,11 @@ sub startup {
{ {
polylines => $json->encode( \@station_pairs ), polylines => $json->encode( \@station_pairs ),
color => '#673ab7', color => '#673ab7',
opacity => $with_polyline ? 0.4 : 0.6, opacity => @polylines
? $with_polyline
? 0.4
: 0.6
: 0.8,
}, },
{ {
polylines => $json->encode( \@polylines ), polylines => $json->encode( \@polylines ),