AnsweredAssumed Answered

InfoWindow - clearFeature? (rather than clearFeatures)

Question asked by myESRIUName on Apr 9, 2018
Latest reply on Apr 9, 2018 by rscheitlin

Using JSAPI 3.x, we have an application where users are able to add and remove various feature layers to the map. Each feature layer supports a popup template for display in the map's InfoWindow.


Assuming a user has displayed the InfoWindow and it contains information from multiple feature layers, if they then remove one of those layers, the popup's content is not updated to remove that layer's associated "panels". 


I see there is a clearFeatures method for Popup (and I can certainly clear them and hide the InfoWindow), but I don't actually want to clear all the features in this scenario, I just want to remove the features in the popup that are associated with the layer being deleted. I can easily tell, from the InfoWindow's features array which ones they are, I just can't figure out how to safely remove them and force the updates to the displayed InfoWindow GUI.


Does anyone have any suggestions re: what to look into that might allow me to do this gracefully?