cheesegrits / filament-google-maps

Google Maps package for Filament PHP
234 stars 65 forks source link

Added capability to choose map style #110

Open Heyian opened 3 months ago

Heyian commented 3 months ago

I needed to have the map as the satellite view for 1 of my project. So I created this option to choose the style you wish render. I've tested the 4 options (roadmap, satellite, hybrid and terrain) and they work as expected. The default value is still roadmap so the option is optional on the Map field.

ryanmortier commented 1 month ago

@cheesegrits can we merge this please?

Heyian commented 1 month ago

Hey there. I've merged this PR onto my fork so we can all get all these goodies from a single place. I gave credits to the person who made the PR in the commits, changelog and in the releases. I've also credited cheesegrits for his work on the repo and made it clear this was a fork on top of the Readme. I'm not trying to hijack anything, I just want to be able to use all the good solutions people put in the pull requests and I thought I'd made this available to all. If you're interested in this version or want to contribute, you can find my fork at : Heyian/forkMain

I'm open to suggestions on how to move forward from here, simply open up an issue in my fork so we can chat about it. Thanks.

chris-bkjg commented 1 month ago

Why wouldn't you create type() instead of your mapType()?

type() is already available on table columns: https://github.com/cheesegrits/filament-google-maps?tab=readme-ov-file#table-column

Heyian commented 1 month ago

You're right, I haven't looked too deeply into this and I don't use the table columns so I never noticed. I'll have a look into it tomorrow or friday. Thanks for the input!