remove specific location overrides

This commit is contained in:
Ben Goldsworthy 2024-03-14 22:23:17 +01:00
parent 9d66c4b21d
commit 5a1c2cbf35
Signed by: Rumperuu
SSH key fingerprint: SHA256:e5XfzNOr9UvWpEzyLfw0GtTMZWIFh3NmxH+/qQIi3xE

View file

@ -65,12 +65,8 @@
L.polyline([ L.polyline([
@foreach(array_slice($trip->locations, $idx, 100) as $location) @foreach(array_slice($trip->locations, $idx, 100) as $location)
@if(!in_array($location->id, config('app.current_trip_ignore'))) @if(!in_array($location->id, config('app.current_trip_ignore')))
@if(in_array($location->id, [19014, 19015, 19016, 19017, 19018, 19019]))
[9.071389, -79.383611],
@else
[{{ $location->latitude }}, {{ $location->longitude }}], [{{ $location->latitude }}, {{ $location->longitude }}],
@endif @endif
@endif
@endforeach @endforeach
], { ], {
@php $colour = 180 * ( 1.0 - ( ( $idx ) / ( count($trip->locations) ) ) ); @endphp @php $colour = 180 * ( 1.0 - ( ( $idx ) / ( count($trip->locations) ) ) ); @endphp