cheesegrits / filament-google-maps

Google Maps package for Filament PHP
247 stars 70 forks source link

laravel 11 Undefined variable $getMapType #127

Open agelospanagiotakis opened 1 week ago

agelospanagiotakis commented 1 week ago

any clues why it crashes on my installation on this line ? i am using version v3.0.16 mapType: @js($getMapType()),

vendor /cheesegrits /filament-google-maps /resources /views /fields /filament-google-maps.blade.php: 57

Saifallak commented 1 week ago

having same problem, it messed up in last release, just force it to use 3.0.15 instead of 3.0.16 as 3.0.16 has breaking changes you can see here https://github.com/cheesegrits/filament-google-maps/compare/v3.0.15...v3.0.16

Heyian commented 1 week ago

There is indeed a bug on the blade view. I'll try to fix it tonight, worst case I'll do it tomorrow. Thank you for issuing this.

mkwsra commented 1 week ago

Thank you for planning to fix it as I needed it also 😅

thanhansoft commented 5 days ago

I same, please help me

jeevanthelife commented 5 days ago

any updates @Heyian ??

Heyian commented 5 days ago

I'm sorry for being late, had to make chanegs to my local dev to make sure I can test properly each PR and fixes. Now that this is done, I confirm that #126 fixes this issue. I'll make sure this gets merged soon.

Naderabdou commented 4 days ago

I found a temporary solution to the issue. By removing the variable $getMapType from the code, it works fine. Here is the modified line: mapType: 'your_default_map_type', // Replace with your default map type

nezaboravi commented 1 day ago

Same issue, just to push visibility

Naderabdou commented 16 hours ago

Same issue, just to push visibility

It worked for me. Please remove mapType from the vendor/cheesegrits/filament-google-maps/resources/views/fields/filament-google-maps.blade.php file and try again.

Heyian commented 4 hours ago

The PR was merged and a new release was built. I just tested it and it works fine on my side. Can anyone else confirm please?