diff --git a/src/Actions/GoToAction.php b/src/Actions/GoToAction.php index f313945..cda0b05 100644 --- a/src/Actions/GoToAction.php +++ b/src/Actions/GoToAction.php @@ -38,19 +38,19 @@ protected function setUp(): void $this->icon('heroicon-s-map'); -// $this->extraAttributes(function (Model $record) { -// $latLngFields = $record::getLatLngAttributes(); -// -// return [ -// 'x-on:click' => new HtmlString( -// sprintf("\$dispatch('setmapcenter', {lat: %f, lng: %f, zoom: %d})", -// round(floatval($record->{$latLngFields['lat']}), 8), -// round(floatval($record->{$latLngFields['lng']}), 8), -// $this->getZoom() -// ) -// ), -// ]; -// }); + // $this->extraAttributes(function (Model $record) { + // $latLngFields = $record::getLatLngAttributes(); + // + // return [ + // 'x-on:click' => new HtmlString( + // sprintf("\$dispatch('setmapcenter', {lat: %f, lng: %f, zoom: %d})", + // round(floatval($record->{$latLngFields['lat']}), 8), + // round(floatval($record->{$latLngFields['lng']}), 8), + // $this->getZoom() + // ) + // ), + // ]; + // }); } public function getLivewireMountAction(): ?string diff --git a/tests/src/Fields/FieldsServiceProvider.php b/tests/src/Fields/FieldsServiceProvider.php index 09fe2b6..10ea2ad 100644 --- a/tests/src/Fields/FieldsServiceProvider.php +++ b/tests/src/Fields/FieldsServiceProvider.php @@ -4,7 +4,6 @@ use Cheesegrits\FilamentGoogleMaps\Tests\Fields\Fixtures\Resources\LocationResource; use Filament\FilamentServiceProvider; -use Filament\PluginServiceProvider; //use Filament\Tests\Admin\Fixtures\Resources\UserResource; diff --git a/tests/src/Fields/Fixtures/Resources/GeocompleteResource.php b/tests/src/Fields/Fixtures/Resources/GeocompleteResource.php index 9127ba8..42c2499 100644 --- a/tests/src/Fields/Fixtures/Resources/GeocompleteResource.php +++ b/tests/src/Fields/Fixtures/Resources/GeocompleteResource.php @@ -12,8 +12,8 @@ use Filament\Forms; use Filament\Forms\Form; use Filament\Resources\Resource; -use Filament\Tables\Table; use Filament\Tables; +use Filament\Tables\Table; class GeocompleteResource extends Resource { diff --git a/tests/src/Fields/Fixtures/Resources/LocationResource.php b/tests/src/Fields/Fixtures/Resources/LocationResource.php index 38ff476..9b34c7e 100644 --- a/tests/src/Fields/Fixtures/Resources/LocationResource.php +++ b/tests/src/Fields/Fixtures/Resources/LocationResource.php @@ -12,8 +12,8 @@ use Filament\Forms; use Filament\Forms\Form; use Filament\Resources\Resource; -use Filament\Tables\Table; use Filament\Tables; +use Filament\Tables\Table; class LocationResource extends Resource { diff --git a/tests/src/Fields/Fixtures/Resources/MapResource.php b/tests/src/Fields/Fixtures/Resources/MapResource.php index 1ccb7db..c5277c5 100644 --- a/tests/src/Fields/Fixtures/Resources/MapResource.php +++ b/tests/src/Fields/Fixtures/Resources/MapResource.php @@ -11,8 +11,8 @@ use Filament\Forms; use Filament\Forms\Form; use Filament\Resources\Resource; -use Filament\Tables\Table; use Filament\Tables; +use Filament\Tables\Table; class MapResource extends Resource {