Closed mokhosh closed 2 months ago
Hi @mokhosh ,
If you want to save latitude and longitude in separate columns, perhaps this issue could be helpful: https://github.com/dotswan/filament-map-picker/issues/2. If not, please let me know.
Thanks @mohaphez
It was helpful, but it basically confirmed that there is no clean way to use separate columns.
Thanks for the great package.
If I use a
json
column calledlocation
, the input works just fine, but if I use separatedecimal
columns forlatitude
andlongitude
, I can't get the input to work as expected.For example if I don't have a
location
column in addition tolatitude
andlongitude
, I getColumn not found, unknown column 'location'
. I have to either add thelocation
column which I don't need, or addlocation
toguarded
on the model which is not ideal.And for the README example code to work, I have to have separate
latitude
andlongitude
text fields on the form, or else they won't be saved to the database.Am I getting it wrong?