lbcdev/filament-map-field
Filament Map Field adds Leaflet-powered map components for Filament v3/v4: MapField and MapEntry to pick/display coordinates, plus MapBoundsField/Entry for rectangular areas. Supports reactive updates, separate lat/lng fields, and nested JSON paths.
lbcdev-map (Livewire component), which introduces a dependency on Livewire’s reactivity model. This is non-disruptive if Livewire is already in use but adds complexity if not.MapField, MapEntry, etc.) are modular and can be adopted incrementally without overhauling existing forms.ubicacion.latitud), reducing boilerplate for complex models.lbcdev-map likely uses external APIs (e.g., Google Maps, OpenStreetMap). Ensure compliance with usage terms and budget for API costs.latitude/longitude columns, JSON fields)? Does the package’s nested field support reduce migration effort?spatie/laravel-geocoder (for geocoding) or torann/laravel-geocoder (for reverse geocoding) could complement this for full spatial workflows.latitude, longitude, address).MapField in a non-critical resource.location->lat/lng).MapEntry to infolists for visualization (e.g., event listings).MapBoundsField for area-based selections (e.g., delivery zones).save(), cancel()).decimal(10,8) for lat/lng). JSON fields are optional but recommended for nested data.composer require livewire/livewire).lbcdev/filament-map-field pulls in lbcdev-map).composer require livewire/livewire lbcdev/filament-map-field
config/filament.php..env.MapField in Filament form definitions:
use Lbcdev\FilamentMapField\Fields\MapField;
MapField::make('coordinates')
->columnSpanFull()
->latitude('latitude')
->longitude('longitude');
MapEntry to infolists for visualization:
use Lbcdev\FilamentMapField\Columns\MapEntry;
MapEntry::make('coordinates')
->latitude('latitude')
->longitude('longitude');
lbcdev/filament-map-field and lbcdev-map for breaking changes. The MIT license allows forks if maintenance stalls.wire:log or browser dev tools to trace component state.filament.log may capture errors related to form submission.lbcdev-map could make future swaps difficult. Document dependencies clearly for onboarding.lbcdev-map options).spatial index in PostgreSQL).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Map service API failure | Broken map rendering | Fallback to static map images or disable interactive maps. |
| Livewire component errors | Form/infolist corruption | Graceful degradation (e.g., show coordinates as text if map fails). |
| Database schema mismatch | Form validation errors | Use Filament’s fillUsing() or model observers to normalize data. |
| High latency in map |
How can I help you explore Laravel packages today?