From c3298389b049f24353c28e74594e495067c0c070 Mon Sep 17 00:00:00 2001 From: Chris Morrell Date: Fri, 15 Nov 2024 21:00:58 -0500 Subject: [PATCH] Update HomeController.php --- app/Http/Controllers/World/HomeController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/World/HomeController.php b/app/Http/Controllers/World/HomeController.php index b09ab09..26e8931 100644 --- a/app/Http/Controllers/World/HomeController.php +++ b/app/Http/Controllers/World/HomeController.php @@ -27,8 +27,8 @@ protected function points() return $groups ->merge($external) ->map(fn(Group|ExternalGroup $row) => [ - 'lat' => $row->latitude, - 'lng' => $row->longitude, + 'lat' => (float) $row->latitude, + 'lng' => (float) $row->longitude, 'name' => $row->label(), ]) ->reject(fn($data) => empty($data['lat']) || empty($data['lat']))