Hi,
I've been looking at implementing a simple headless widget in the SFV but I'm struggling to find a way to close or turn off the widget (i.e. clear the graphics layer) after it's been activated.
Using the default SimpleHeadlessWidget that comes with the viewer, clicking the icon on the header controller performs a query and displays Louisville traffic cameras. Any thoughts on how this layer can be cleared, without having to add an additional "clear layers" widget/icon to the header controller?
I thought it would be possible to add something to the widgetItemDG_widgetItemClickHandler function in the HeaderControllerWidget.mxml, but this doesn't seem to be called if the widget icon is clicked a second time.
Any thoughts or ideas on this would be appreciated.
Thanks,
Craig