What is the function to close a popup window?

8677
12
Jump to solution
03-29-2016 02:39 PM
NMWater
New Contributor III

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!

0 Kudos
12 Replies
NMWater
New Contributor III

Thanks very much! It was a simple placement of code, making a global variable worked.

Thanks!

AnudeepGorantla
New Contributor
map.infoWindow.hide();
0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Yep that was answered three years ago.

0 Kudos