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

@ -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'