@@ -57,19 +57,19 @@ class Map extends Field
5757 * Main field config variables
5858 */
5959 private array $ mapConfig = [
60- 'autocomplete ' => false ,
61- 'autocompleteReverse ' => false ,
62- 'geolocate ' => false ,
63- 'geolocateLabel ' => '' ,
64- 'draggable ' => true ,
65- 'clickable ' => false ,
66- 'defaultLocation ' => [
60+ 'autocomplete ' => false ,
61+ 'autocompleteReverse ' => false ,
62+ 'geolocate ' => false ,
63+ 'geolocateLabel ' => '' ,
64+ 'draggable ' => true ,
65+ 'clickable ' => false ,
66+ 'defaultLocation ' => [
6767 'lat ' => 15.3419776 ,
6868 'lng ' => 44.2171392 ,
6969 ],
70- 'controls ' => [],
71- 'drawingControl ' => false ,
72- 'drawingModes ' => [
70+ 'controls ' => [],
71+ 'drawingControl ' => false ,
72+ 'drawingModes ' => [
7373 'marker ' => true ,
7474 'circle ' => true ,
7575 'rectangle ' => true ,
@@ -231,7 +231,6 @@ public function getGeolocateLabel(): string
231231 /**
232232 * Add drawing controls to the map
233233 *
234- * @param Closure|bool $drawingControl
235234 * @return $this
236235 */
237236 public function drawingControl (Closure |bool $ drawingControl = true ): static
@@ -280,7 +279,6 @@ public function getDrawingField(): ?string
280279 * 'rectangle' => true,
281280 * ]
282281 *
283- * @param Closure|array $drawingModes
284282 * @return $this
285283 */
286284 public function drawingModes (Closure |array $ drawingModes ): static
@@ -424,6 +422,7 @@ public function getMapControls(): string
424422 $ controls = $ this ->evaluate ($ this ->mapControls );
425423
426424 return json_encode (array_merge ($ this ->controls , $ controls ), JSON_THROW_ON_ERROR );
425+
427426 return json_encode (array_merge ($ this ->controls , $ controls ), JSON_THROW_ON_ERROR );
428427 }
429428
@@ -539,7 +538,7 @@ public function mapsHasJs(): bool
539538
540539 public function mapsJsUrl (): string
541540 {
542- $ manifest = json_decode (file_get_contents (__DIR__ . '/../../dist/mix-manifest.json ' ), true );
541+ $ manifest = json_decode (file_get_contents (__DIR__ . '/../../dist/mix-manifest.json ' ), true );
543542
544543 return url ($ manifest ['/cheesegrits/filament-google-maps/filament-google-maps.js ' ]);
545544 }
@@ -551,7 +550,7 @@ public function mapsHasCss(): bool
551550
552551 public function mapsCssUrl (): string
553552 {
554- $ manifest = json_decode (file_get_contents (__DIR__ . '/../../dist/mix-manifest.json ' ), true );
553+ $ manifest = json_decode (file_get_contents (__DIR__ . '/../../dist/mix-manifest.json ' ), true );
555554
556555 return url ($ manifest ['/cheesegrits/filament-google-maps/filament-google-maps.css ' ]);
557556 }
0 commit comments