demo
demo copied to clipboard
Add google map field to demo
added two google map field examples, one in Owner and other in Passport to show both saving options (same column json or multiple columns).
Good Job @pxpm 🎉🎉
Hello @pxpm
Maps works great! i just have a fail with "Get my location button" (see screeshont)


But maps load normal and i can move pin and show me new location.

Let me know if something is wrong with my config, i set my api key in "GOOGLE_PLACES_KEY".
Cheers.
@jorgetwgroup you browser location is not available locally without https 👍
@tabacitu can you create a subdomain for this branch online so that we fully test the location services ? Something like https://demomaps.backpackforlaravel.com ?
Going through the route of getting https locally is a pain, trust me, I've been there more than once!
Cheers
@pxpm I left y comments here.
I was able to test it locally with https since I use Mamp Pro for it and it makes it painless :)
Hmm... I can confirm they work in both places but... I wouldn't agree that they make sense in those CRUDs @pxpm . Quite the contrary - I think we had a few "clean" forms there with Passport and Owner, and adding this example there... bloats them up. I especially dislike how the Owner form looks now, with all that white space, not pretty at all:

Let's please:
- [x] move the
google_mapfield to the Monster form, at the bottom of the "Time and space" tab; that's where we have ALL our field types so... why wouldn't it be there?! plus, then it will be picked up by the other related CRUDs so we can easily test it's working with CrudField JS API, etc; - [x] if we need to show a different functionality for it (eg. store
latandlongin different columns) we should also add it to another "bloated" CRUD, for example... Cave? Yeah, I think Cave is a good one, it only has two fields so it won't be messy at the end of that; plus, it makes more sense for a Cave to havelatandlongthan a Passport or Owner, right?
Done both things, moved one of the map fields to monster that stores in a single fake column, and another one to cave that stores the inputs separatelly.
👍