You can install the package via composer:
composer require infinityxtech/filament-world-map-widget
php artisan make:filament-map-widget MapWidget
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
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.