dotswan / filament-map-picker

Map Picker is a Filament custom field designed to simplify the process of choosing a location on a map and obtaining its geo-coordinates.
MIT License
32 stars 10 forks source link

Add current position #27

Open marco76tv opened 2 days ago

marco76tv commented 2 days ago

I think it is useful to add a button to the map to position the map at the user's position, also when opening the map set it to the user's position

mohaphez commented 2 days ago

Hi @marco76tv

did you try showMyLocationButton() method ?

This method will display a button on the right side, which, when clicked, will get the user's current location (requiring browser permission) and display it on the map.

If there are any issues or problems, please let me know.