@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
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 Level | Latitude | Longitude | Traffic Map | Zoning |
|---|---|---|---|---|---|
| {{ $state->name }} {{ $state->state_code }} |
{{ $state->traffic_level }} | {{ number_format($state->latitude, 5) }} | {{ number_format($state->longitude, 5) }} | Open Traffic | Open Zones |