@php $states = collect($states ?? []); $defaultState = $defaultState ?? $states->firstWhere('slug', 'ontario') ?? $states->first(); $mapId = $mapId ?? 'canadaTrafficMap'; $trafficCounts = $trafficCounts ?? $states->groupBy('traffic_level')->map->count(); $googleMapsKey = $googleMapsKey ?? config('services.google.maps_browser_key'); @endphp @if(! $googleMapsKey) @push('styles') @endpush @endif
Provinces / Territories{{ $states->count() }}
Low Traffic{{ $trafficCounts['low'] ?? 0 }}
High Traffic{{ ($trafficCounts['high'] ?? 0) + ($trafficCounts['critical'] ?? 0) }}
Live Layer{{ $googleMapsKey ? 'Google Traffic' : 'Database Only' }}

Canada Highway Traffic Map

This map keeps the Canadian province/territory overview and shows live road traffic when GOOGLE_MAPS_BROWSER_KEY is configured. Use each row below to open either the live traffic map or the province zoning page.

{{ $googleMapsKey ? 'Google Traffic Layer is enabled for real road/highway traffic conditions.' : 'Add GOOGLE_MAPS_BROWSER_KEY to enable live road/highway traffic. Until then, this falls back to saved database traffic status.' }}

Province / Territory Traffic and Zoning

@foreach($states as $state) @endforeach
Province / Territory Traffic Level Latitude Longitude Traffic Map Zoning
@if($googleMapsKey) @push('scripts') @endpush @else @push('scripts') @endpush @endif