Skip to content

[Map] How to change circle colors ? #3140

@cbeyer

Description

@cbeyer

Hello,

I'm using symfony/ux-map v2.30.0 (with symfony/ux-leaflet-map)

I want to draw a circle and customize his colors : fill color and border color. And why not opacity.

$circle = new Circle(
    center: new Point(48.8566, 2.3522),
    radius: 15_000,
    infoWindow: new InfoWindow(
        content: 'Circle centered on Paris',
    ),
    color: 'red', // <---- fails
);

Looking https://github.com/symfony/ux/blob/2.x/src/Map/src/Circle.php there is no parameter dealing with colors.

How is it possible to do that ?

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions