infinityxtech/filament-world-map-widget

World map stats widget

v1.0.0 2024-11-02 14:23 UTC

This package is auto-updated.

Last update: 2024-12-11 13:01:41 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

image

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.