Hey
I'm trying to get popups/infowindows to communicate with a custom widget. What i'm wanting to do is when a popup/infowindow appears (ie map is clicked) to grab some values from the popup/infowindow and use the min the widget.
I've tried the events in the js api but can't seem to get anything working....
Has anyone tried this before or has some code snippets that facilitate this functionality?
Cheers
Solved! Go to Solution.
Hamish,
You need to add an event listener to the this.map.infoWindow set-features event, then you can use the this.map.infoWindow.getSelectedFeature() to get the graphic object that is selected and then get to its attributes.
Hamish,
You need to add an event listener to the this.map.infoWindow set-features event, then you can use the this.map.infoWindow.getSelectedFeature() to get the graphic object that is selected and then get to its attributes.
Excellent, Thank you Robert