What I’m trying to do:
I would like to display an image in a form that is opened in a Google Maps InfoWindow
What I’ve tried and what’s not working: Issue 1:
Lazy Media are not being displayed in the Form in the InfoWindow
Issue 2:
Secondly, it seems the form or component show events do not fire when the Form is inside the InfoWindow. When I set the source with in the component in the IDE the image renders ok but if I set the source of the image in the init it does not work.
I have confirmed the data being passed to InfoWindow is available in the form (though it is a LazyMedia object) but the image never renders.
Issue 3:
Why are links always surrounded by a black box as if they are preselected? If the link location is moved, sometimes the black box moves to the close x
Code
class InfoWindowForm(InfoWindowFormTemplate):
def __init__(self, updated_image, **properties):
# Set Form properties and Data Bindings.
self.init_components(**properties)
self.updated_image = updated_image
print ("InfoWindow Form init complete")
self.image_1.source = app_tables.table_1.get(name="Wide Logo")['media']
# Any code you write here will run when the form opens.
def form_show(self, **event_args):
"""This method is called when the column panel is shown on the screen"""
self.image_2.source = self.updated_image
print ("InfoWindow Form Shown")