kpebedko22/filament-yandex-map
Integrate Yandex Map into Laravel Filament forms and infolists with ready-made components. Configure API keys, map center, zoom, language, geo-object modes, height, and control buttons via simple fluent methods, with optional translation publishing.
services.php) and runtime overrides (via closures) enable flexibility in deployment (e.g., per-environment API keys, language settings)..env exposure in version control).ru_RU; non-Russian locales may require additional configuration or translations. Note that v5.1.0 addressed a specific translation-key bug, suggesting localization is an area of active refinement.@maxim3815) with three merged PRs in a single release. This is a positive health signal but still single-maintainer-adjacent.point column) to store coordinates. MultiPolygon inputs require GeoJSON- or JSON-shaped columns rather than simple lat/lng pairs — plan schema accordingly..env:
YANDEX_MAP_API_KEY=your_key_here
YANDEX_MAP_SUGEST_API_KEY=your_suggest_key_here
php artisan vendor:publish --tag="filament-yandex-map-translations"
config/services.php with default map settings (center, zoom, language).YandexMap::make() in Filament forms:
YandexMap::make('location')
->mode(YandexMapMode::Placemark)
->apiKey(env('YANDEX_MAP_API_KEY'))
->height('500px')
YandexMap::make('service_area')
->mode(YandexMapMode::MultiPolygon)
->height('600px')
latitude/longitude fields or GeoJSON structure).vendor:publish --force for translation files after patch upgrades..env and config).geography type). MultiPolygon data benefits from a proper geometry/GeoJSON column and a spatial index.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Yandex Maps API downtime | Map rendering fails | Graceful degradation (static placeholder). |
| API key revoked/expired | All maps break | Automated alerts + key rotation process. |
| High API usage costs | Budget overrun | Set usage quotas; switch to free tier if needed. |
| CSS/JS conflicts with other plugins | Broken UI | Isolate map container; test in isolation. |
| Slow rendering on low-end devices | Poor UX | Reduce map height; lazy-load. |
| Complex MultiPolygon payloads | Rendering lag, storage bloat | Validate geometry size; simplify polygons; lazy-load. |
| Missing/regressed translation keys | Misleading UI labels | Republish translations after upgrades; add UI smoke tests (v5.1.0 fixed one such issue). |
How can I help you explore Laravel packages today?