Download the PHP package afsakar/filament-leaflet-map-picker without Composer
On this page you can find all versions of the php package afsakar/filament-leaflet-map-picker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download afsakar/filament-leaflet-map-picker
More information about afsakar/filament-leaflet-map-picker
Files in afsakar/filament-leaflet-map-picker
Package filament-leaflet-map-picker
Short Description A Filament Forms component that provides an interactive Leaflet map for selecting and storing geographical coordinates.
License MIT
Homepage https://github.com/afsakar/filament-leaflet-map-picker
Informations about the package filament-leaflet-map-picker
FilamentPHP LeafletJS Map Picker
A Filament Forms component that provides an interactive Leaflet map for selecting and storing geographical coordinates.
Features
- Interactive map for location selection
- Customizable map height
- Default location configuration
- Adjustable zoom level
- Draggable and clickable markers
- "My Location" button for quick navigation to user's current position
- Support for different tile providers (OpenStreetMap by default)
- Custom tile layer support
- Custom marker configuration
Installation
You can install the package via composer:
Database Migration
Create a column in your table to store the location data. You can use a text
or json
column type:
Preparing the models
To use the LeafletMapPicker component, you need to prepare your database and model to store geographical coordinates. The component stores location data as a JSON string in the format [lat, lng]
.
You can publish the lang files with:
Optionally, you can publish the views using
Usage
Screenshots
Default:
Custom Marker:
Custom Tile:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Azad Furkan ŞAKAR
- All Contributors
License
The MIT License (MIT). Please see License File for more information.