afsakar/filament-leaflet-map-picker
Filament Leaflet Map Picker adds an interactive Leaflet map field to Filament forms, letting users click or drag a marker to select latitude and longitude coordinates. Configurable map options make location picking easy to integrate into Laravel admin panels.
Adopt when:
Look elsewhere when:
To executives: This is a small, free (MIT-licensed) component that lets our admin users pick a location on a map and save it, instead of typing coordinates by hand or us paying for a mapping platform. It compresses a recurring multi-day build into roughly half a day per feature and creates the coordinate data we would need later for "nearest to me" and territory features. The risk is deliberately low: it is a thin layer over an open-source map library, so if the maintainer walks away we can absorb the code ourselves at modest cost. Recommended posture: adopt for internal tooling, keep it behind our own form-field abstraction so it stays swappable, and treat tile-provider terms as a separate, explicit decision.
To engineering: Use it as the default geo input in Filament forms; wrap it in a single project-owned field class so upgrades and any future replacement happen in one place. Validate coordinate bounds server-side and store lat/lng as decimals with an explicit coordinate system assumption. Please surface the tile-provider choice (and its attribution, rate-limit and privacy implications) as a config decision, not a hard-coded default, and add a test that the field round-trips coordinates on Filament major upgrades.
How can I help you explore Laravel packages today?