Download the PHP package traineratwot/filament-openstreetmap without Composer
On this page you can find all versions of the php package traineratwot/filament-openstreetmap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download traineratwot/filament-openstreetmap
More information about traineratwot/filament-openstreetmap
Files in traineratwot/filament-openstreetmap
Package filament-openstreetmap
Short Description OpenStreetMap field for Filament forms with Leaflet.js — pick coordinates, geocode addresses, and store points in 11 formats (WKT, GeoJSON, array, DMS, map URLs)
License MIT
Homepage https://github.com/traineratwot/filament-openstreetmap
Informations about the package filament-openstreetmap
This is filament-openstreetmap
Add openstreetmap field to filament form
Full free map API
Interface
How it view in database
Installation
You can install the package via composer:
Then publish the Leaflet assets:
This copies Leaflet JS/CSS to public/vendor/filament-openstreetmap/leaflet/.
Usage
Make model with migration
1)
2)
Make filament resource
Using Point (recommended)
The Point value object is the recommended way to work with coordinates. It handles format conversion, parsing, and distance calculations.
Using Point in MapInput
Markers
You can add predefined markers to the map. Clicking a marker applies its coordinates to the field value.
Each marker accepts:
title— popup text (optional)point—Pointinstance or[lat, lng]arraycolor— marker dot color (default#3388ff)
Dynamic markers (Closure)
Markers Only mode
Restrict selection to predefined markers only — map clicks are disabled, search filters the marker list.
Dynamic markersOnly (Closure)
formats
You can save in database in thar formats
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
- Traineratwot
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Used packages
composer: matanyadaev/laravel-eloquent-spatial
js: Leaflet.js (vendored)