From 261d34f3809dd86ea5b3b786ffa78b42dee3d803 Mon Sep 17 00:00:00 2001 From: Traineratwot Date: Mon, 17 Jun 2024 09:55:08 +0000 Subject: [PATCH] Fix styling --- config/filament-openstreetmap.php | 2 +- src/Forms/Components/MapInput.php | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config/filament-openstreetmap.php b/config/filament-openstreetmap.php index 66107ac..7a40651 100644 --- a/config/filament-openstreetmap.php +++ b/config/filament-openstreetmap.php @@ -1,5 +1,5 @@ "en-US", + 'lang' => 'en-US', ]; diff --git a/src/Forms/Components/MapInput.php b/src/Forms/Components/MapInput.php index 8606400..37d4a34 100644 --- a/src/Forms/Components/MapInput.php +++ b/src/Forms/Components/MapInput.php @@ -20,6 +20,7 @@ class MapInput extends Textarea * @var 'Point'|'String'|'Array' */ public string $saveAs = 'String'; + public string $geoCoderLang = 'en-US'; private int $srid = 0; @@ -128,8 +129,8 @@ protected function parseInput(mixed $state): array } return [ - 'latitude' => (float)$state[0], - 'longitude' => (float)$state[1], + 'latitude' => (float) $state[0], + 'longitude' => (float) $state[1], ]; } @@ -137,8 +138,8 @@ protected function parseInput(mixed $state): array $_state = explode(',', $state); return [ - 'latitude' => (float)$_state[0], - 'longitude' => (float)$_state[1], + 'latitude' => (float) $_state[0], + 'longitude' => (float) $_state[1], ]; }