fix recency fadeout
This commit is contained in:
parent
375a8774b7
commit
fed8dab57c
1 changed files with 5 additions and 2 deletions
|
@ -66,11 +66,14 @@
|
|||
L.polyline([
|
||||
@foreach(array_slice($trip->locations, $idx, 100) as $location)
|
||||
@if(!in_array($location->id, config('app.current_trip_ignore')))
|
||||
[{{ $location->latitude }}, {{ $location->longitude }}], // {{$location->id}}
|
||||
[{{ $location->latitude }}, {{ $location->longitude }}],
|
||||
@endif
|
||||
@endforeach
|
||||
], {
|
||||
color: 'rgba(62, 62, 62, {{ ( $idx - (-50) ) / (count($trip->locations) - (-50)) }})'
|
||||
@php $colour = 180 * ( 1.0 - ( ( $idx ) / ( count($trip->locations) ) ) ); @endphp
|
||||
color: 'rgb({{ $colour }}, {{ $colour }}, {{ $colour }})',
|
||||
weight: 5,
|
||||
//color: 'rgba(62, 62, 62, {{ ( $idx - 0.5) / (count($trip->locations) - 0.5 ) }})'
|
||||
}).addTo(map);
|
||||
@endfor
|
||||
|
||||
|
|
Loading…
Reference in a new issue