From c6edbdee65784430b7f779e386c27d5cc1983911 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Thu, 18 May 2023 19:41:59 +0000 Subject: [PATCH] merge --- resources/views/tracker.blade.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/views/tracker.blade.php b/resources/views/tracker.blade.php index 08267a5..11889c2 100644 --- a/resources/views/tracker.blade.php +++ b/resources/views/tracker.blade.php @@ -59,14 +59,18 @@ attribution: 'OpenStreetMap' }).addTo(map); - @for($idx = 0; $idx <= count($trip->locations); $idx += 99) + @for($idx = 3; $idx <= count($trip->locations); $idx += 99) /* * Populate the route line. */ 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 }}], + @if(in_array($location->id, [19014, 19015, 19016, 19017, 19018, 19019])) + [9.071389, -79.383611], + @else + [{{ $location->latitude }}, {{ $location->longitude }}], + @endif @endif @endforeach ], {