-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix setStyle method for Circle class #6128
base: main
Are you sure you want to change the base?
Conversation
Why is this needed, when there is already a |
I'm currently working on https://github.com/jupyter-widgets/ipyleaflet, we use python models on the backend for defining Leaflet widgets on the frontend. Every time the model changes on the backend, we update the frontend with a simple |
( |
|
On second thought, it seems that the behaviour of Maybe we need to add some docstrings to make it clearer that |
I don't think this is an oversight. Radius not being a part of Circle "style" is intentional, because unlike CircleMarker, it'a physical property of the circle, just like geographical location. It's not a visual thing. |
@mourner |
The Circle class inherits from CircleMarker class, which has a
setStyle
method which sets the radius. There was no equivalent in Circle class (thesetStyle
method was the one from the Path class), so we couldn't set the Circle radius with thesetStyle
method