Skip to content

InfinityXTech/filament-world-map-widget

Repository files navigation

World map stats widget

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.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published