Download the PHP package swisnl/filament-geometry without Composer
On this page you can find all versions of the php package swisnl/filament-geometry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download swisnl/filament-geometry
More information about swisnl/filament-geometry
Files in swisnl/filament-geometry
Package filament-geometry
Short Description Geometry form field for Filament PHP
License MIT
Homepage https://github.com/swisnl/filament-geometry
Informations about the package filament-geometry
Filament geometry
[!WARNING] Work in progress, not stable yet!
Installation
You can install the package via composer:
Important This package requires Filament 4.x. For Filament 3.x compatibility, use version 0.3.x of this package.
In an effort to align with Filament's theming methodology you will need to use a custom theme to use this plugin.
[!IMPORTANT] If you have not set up a custom theme and are using Filament Panels follow the instructions in the Filament Docs first.
After setting up a custom theme add the plugin's views to your theme css file or your app's css file if using the standalone packages.
Component
Geometry Field
The Geometry field displays a leaflet map, with a set of configuration options.
Usage
Geometry Field
[!IMPORTANT]
This field is designed to be used in conjunction with a database column of typePOINT
,LINESTRING
,POLYGON
orGEOMETRY
. It currently does not support geometry types with multiple items likeMULTIPOINT
,MULTILINESTRING
,MULTIPOLYGON
orGEOMETRYCOLLECTION
. This field expects the attribute value to be a valid GeoJSON string. Make sure your model attribute stores and retrieves GeoJSON data as a string.
The form field can be used with no options, by simply adding this to your Filament form schema:
Full options
The full set of options is as follows. Some option methods support closures, as well as direct values.
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
License
The MIT License (MIT). Please see License File for more information.
SWIS ❤️ Open Source
SWIS is a web agency from Leiden, the Netherlands. We love working with open source software.
All versions of filament-geometry with dependencies
filament/filament Version ^4.0
filament/forms Version ^4.0
spatie/laravel-package-tools Version ^1.16