Skip to content

Commit 16ca109

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents dccf65e + aa35670 commit 16ca109

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

src/Fields/Map.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ class Map extends Field
5959
* Main field config variables
6060
*/
6161
private array $mapConfig = [
62-
'autocomplete' => false,
63-
'autocompleteReverse' => false,
64-
'geolocate' => false,
65-
'geolocateLabel' => '',
66-
'draggable' => true,
67-
'clickable' => false,
68-
'defaultLocation' => [
62+
'autocomplete' => false,
63+
'autocompleteReverse' => false,
64+
'geolocate' => false,
65+
'geolocateLabel' => '',
66+
'draggable' => true,
67+
'clickable' => false,
68+
'defaultLocation' => [
6969
'lat' => 15.3419776,
7070
'lng' => 44.2171392,
7171
],
72-
'controls' => [],
73-
'drawingControl' => false,
74-
'drawingModes' => [
72+
'controls' => [],
73+
'drawingControl' => false,
74+
'drawingModes' => [
7575
'marker' => true,
7676
'circle' => true,
7777
'rectangle' => true,
@@ -558,7 +558,7 @@ public function mapsHasJs(): bool
558558

559559
public function mapsJsUrl(): string
560560
{
561-
$manifest = json_decode(file_get_contents(__DIR__ . '/../../dist/mix-manifest.json'), true);
561+
$manifest = json_decode(file_get_contents(__DIR__.'/../../dist/mix-manifest.json'), true);
562562

563563
return url($manifest['/cheesegrits/filament-google-maps/filament-google-maps.js']);
564564
}
@@ -570,7 +570,7 @@ public function mapsHasCss(): bool
570570

571571
public function mapsCssUrl(): string
572572
{
573-
$manifest = json_decode(file_get_contents(__DIR__ . '/../../dist/mix-manifest.json'), true);
573+
$manifest = json_decode(file_get_contents(__DIR__.'/../../dist/mix-manifest.json'), true);
574574

575575
return url($manifest['/cheesegrits/filament-google-maps/filament-google-maps.css']);
576576
}

src/Helpers/MapsHelper.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,27 @@
77
class MapsHelper
88
{
99
const POSITION_BOTTOM_CENTER = 11;
10+
1011
const POSITION_BOTTOM_LEFT = 10;
12+
1113
const POSITION_BOTTOM_RIGHT = 12;
14+
1215
const POSITION_LEFT_CENTER = 4;
16+
1317
const POSITION_LEFT_TOP = 5;
18+
1419
const POSITION_RIGHT_BOTTOM = 9;
20+
1521
const POSITION_RIGHT_CENTER = 8;
22+
1623
const POSITION_RIGHT_TOP = 7;
24+
1725
const POSITION_TOP_CENTER = 2;
26+
1827
const POSITION_TOP_LEFT = 1;
28+
1929
const POSITION_TOP_RIGHT = 3;
20-
30+
2131
public static function mapsKey($server = false): string
2232
{
2333
return $server ? config('filament-google-maps.keys.server_key') : config('filament-google-maps.keys.web_key');

0 commit comments

Comments
 (0)