cheesegrits / filament-google-maps

Google Maps package for Filament PHP
212 stars 60 forks source link

chore: add customization to drawing tools options #63

Closed ubpon closed 8 months ago

ubpon commented 8 months ago

This PR will set the colors of drawing tools such as circle, rectangle, and polygon. It can override the default options of the tool like fillColor, strokeColor, opacity and etc.

Map::make('location')
    ->circleOptions([
        'strokeColor' => '#ff0000',
        'fillColor' => '#ffffff',
        ...
    ])
    ->rectangleOptions([
        'strokeColor' => '#ff0000',
        'fillColor' => '#ffffff',
        ...
    ])
    ->polyOptions([
        'strokeColor' => '#ff0000',
        'fillColor' => '#ffffff',
        ...
    ])