Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Traineratwot committed Jun 17, 2024
2 parents 2bd07b7 + 261d34f commit dc8a29a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/filament-openstreetmap.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

return [
"lang"=>"en-US",
'lang' => 'en-US',
];
9 changes: 5 additions & 4 deletions src/Forms/Components/MapInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -128,17 +129,17 @@ protected function parseInput(mixed $state): array
}

return [
'latitude' => (float)$state[0],
'longitude' => (float)$state[1],
'latitude' => (float) $state[0],
'longitude' => (float) $state[1],
];
}

if (is_string($state)) {
$_state = explode(',', $state);

return [
'latitude' => (float)$_state[0],
'longitude' => (float)$_state[1],
'latitude' => (float) $_state[0],
'longitude' => (float) $_state[1],
];
}

Expand Down

0 comments on commit dc8a29a

Please sign in to comment.