AnsweredAssumed Answered

Popup disabled : clear selection method

Question asked by hanb915 on Apr 2, 2018
Latest reply on Apr 4, 2018 by rscheitlin

Hi

I'm creating an interactive map. I've added a graphic layer use 

 

var graphic = new Graphic(Point,Symbol,attr,infoTemplate); 

 

method.  When I click on the graphic infoWindow will popup. Now I want to create another button, when I click it, the selection clears. I couldn't find a method to clear selection. I know there is clearSelection function in feature layer, but what about graphic layer?

 

I've disabled popup and show the infoTemplate content in another place. But the onClearFeatures event didn't fire.

Is there a way to clear the selection or make this onClearFeatures event fire??

Outcomes