Skip to content

CircleMarker.setStyle() does not respect changes in radius #1012

@fdlk

Description

@fdlk

CircleMarker does not override setStyle() and therefore setStyle() only changes PathOptions.
But in the constructor the radius is part of the style.

Use case:
I am generating CircleMarkers from GeoJSON Points using pointToLayer.
When the user zooms in and out, I want to change the style of these CircleMarkers, in particular their color and radius. To do this, I call setStyle() on the generated GeoJSON Layer, but this does not change the radius of the CircleMarkers, only the color.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions