AnsweredAssumed Answered

What is the function to close a popup window?

Question asked by NMWRRI on Mar 29, 2016
Latest reply on Feb 8, 2019 by rscheitlin

I have a popup that works perfectly fine. Whenever I switch layers though, the popup still hangs around along with its outline. How does one close it, say by clicking a button? I tried adding the function "map.infoWindow.hide();" to my code but that doesn't seem to be working. I set my infowindow in the map to popup. Any help would be greatly appreciated!