Add location ignoring

This commit is contained in:
Ben Goldsworthy 2022-11-28 21:51:24 +00:00
parent dbcfb12c52
commit df6b311cc4
2 changed files with 4 additions and 0 deletions

View file

@ -70,6 +70,8 @@ return [
'current_trip_id' => env('CURRENT_TRIP_ID'), 'current_trip_id' => env('CURRENT_TRIP_ID'),
'current_trip_ignore' => explode(',', env('CURRENT_TRIP_IGNORE')),
'past_trip_ids' => explode(',', env('PAST_TRIP_IDS')), 'past_trip_ids' => explode(',', env('PAST_TRIP_IDS')),
/* /*

View file

@ -62,7 +62,9 @@
*/ */
var routePoints = L.polyline([ var routePoints = L.polyline([
@foreach($trip->locations as $location) @foreach($trip->locations as $location)
@if(!in_array($location->id, config('app.current_trip_ignore')))
[{{ $location->latitude }}, {{ $location->longitude }}], [{{ $location->latitude }}, {{ $location->longitude }}],
@endif
@endforeach @endforeach
], { ], {
color: '#3d3d3d' color: '#3d3d3d'