-
Notifications
You must be signed in to change notification settings - Fork 901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Google Map [pro] field issue (solution proposed) #5710
Comments
Thank you for reporting this issue with the Google Map [pro] field in Backpack. Based on the information provided, it appears you're experiencing a bug with the map pin functionality. Let me address your concerns:
Given the nature of this bug, here are some suggestions:
If you need further assistance or if the problem continues after trying these steps, I encourage you to reach out to the Backpack community or developers directly, as they would be best equipped to address this specific bug and provide a fix or workaround. Relevant sources: Github Issue (closed): google_map PRO field |
Actually the issue is the javascript code in google_map.blade row 76 From:
To:
|
Hello @manfield I will test this issue, can you share how did you configure the field? Thanks. Cheers. |
Hi,
|
Please note that "place" is retrieved by this method on the model:
|
Thanks a lot @manfield i confirm this bug. I will be working in a PR and let you know about the fix. Thanks again. Cheers. |
No rush for me. I could override the blade template. Thanks for your support |
The same issue in row 244, when trying to save position on searchBox change:
place.geometry.location is not the literal expected, but google.map.LatLng |
Hello @manfield Thanks a lot for sharing about this bug and help with solution, we update our Pro package and this is fixed now. Please run
I will close this issue, but please feel free to re-open or create a new one if needed. Cheers. |
Bug report
What I did
I'm using lat, lng, location on datbaase, as explained in the documentation.
If I click to set the pin on the map, instead of drag'n'dropping it, an empty set of lat, lng is passed to the location() custom function, raising an error.
Probably the value would not been saved either if I didn't use lat, lng, location columns on the database, with the standard way.
It seems to be a js bug.
What I expected to happen
In any case moving the pin, clicking on the map, should save values correctly.
Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is:The text was updated successfully, but these errors were encountered: