infinityxtech / filament-world-map-widget
World map stats widget
Fund package maintenance!
InfinityXTech
Requires
- php: ^8.1
- filament/filament: ^3.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- nunomaduro/collision: ^7.9
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.1
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
README
Installation
You can install the package via composer:
composer require infinityxtech/filament-world-map-widget
Usage
php artisan make:filament-map-widget MapWidget
Available methods
public function stats () { return [ 'US' => 35000, 'RS' => 15000 ]; } public function heading ():string|Htmlable|null { return 'World Map'; } public function tooltip ():string|Htmlable { return 'stats'; } public function map ():Map { return Map::WORLD; } public function color ():array { return [0, 120, 215]; // rgb value } public function height ():string; public function additionalOptions ():array { return []; }
For more additional options check: Jsvectormap
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.