Add location ignoring
This commit is contained in:
parent
dbcfb12c52
commit
df6b311cc4
2 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,8 @@ return [
|
|||
|
||||
'current_trip_id' => env('CURRENT_TRIP_ID'),
|
||||
|
||||
'current_trip_ignore' => explode(',', env('CURRENT_TRIP_IGNORE')),
|
||||
|
||||
'past_trip_ids' => explode(',', env('PAST_TRIP_IDS')),
|
||||
|
||||
/*
|
||||
|
|
|
@ -62,7 +62,9 @@
|
|||
*/
|
||||
var routePoints = L.polyline([
|
||||
@foreach($trip->locations as $location)
|
||||
@if(!in_array($location->id, config('app.current_trip_ignore')))
|
||||
[{{ $location->latitude }}, {{ $location->longitude }}],
|
||||
@endif
|
||||
@endforeach
|
||||
], {
|
||||
color: '#3d3d3d'
|
||||
|
|
Loading…
Reference in a new issue