pbugnion / gmaps

Google maps for Jupyter notebooks
https://jupyter-gmaps.readthedocs.io/en/stable/
Other
760 stars 147 forks source link

circle.send_state() does not update figure #321

Open dorp92 opened 5 years ago

dorp92 commented 5 years ago

When I want to add circle to the figure I do the following:

pt = random_point_inside_polygon(poly.path)
circle = gmaps.drawing.Circle(center=pt,radius=10,fill_color='red',stroke_color='red')
drawing.features.append(circle)
drawing.send_state()

Now I want to update the circle properties So I tried:

circle.radius = 50
circle.fill_color ='green'
circle.send_state()

But it doesn't update the figure Is this a bug? or there is some other way to do it?