GoogleMap.Circle events missing

Hi @garaycs, we’ve added the Circle events to the Python version of GoogleMap now.

Here’s an app that prints the radius and centre position of the circle when it is moved/resized:

  def __init__(self, **properties):
    # ...
    self.circle.set_event_handler("center_changed", self.print_centre)
    self.circle.set_event_handler("radius_changed", self.print_radius) 

  def print_centre(self, **event_args):
    print(event_args['sender'].center)
    
  def print_radius(self, **event_args):
    print(event_args['sender'].radius)

https://anvil.works/build#clone:RKVVBRAX6OQCY7YV=7VIQEZ4W6P6L3BQUSTGI7SR5

1 Like