Select to view content in your preferred language

Infowindow not hiding on infoWindow.hide

2225
2
Jump to solution
05-16-2012 12:33 AM
TurbinJ
Emerging Contributor
I have a problem with my infowindow. It is a Popup window.

When the user selects a button on my Toolbar I call a function and when I debug I can see that the function is called. But it doesn't hide my infowindow. Anyone got an idea about why it is still visible?

Here is a snippet

[HTML]function turnidTool(ident){
 
  map.infoWindow.hide;
 
  if (ident==1)
  {
   if (defltHandle==null)
   {
   
     defltHandle = dojo.connect(map, "onClick", doIdentify);
   } 
  }
  else
  {
   dojo.disconnect(defltHandle);
   defltHandle = null;
   resetFunctionality(); 
   }
  }[/HTML]
0 Kudos
1 Solution

Accepted Solutions
derekswingley1
Deactivated User
map.infoWindow.hide is a function so you need parentheses after it to call it:
map.infoWindow.hide();

View solution in original post

0 Kudos
2 Replies
derekswingley1
Deactivated User
map.infoWindow.hide is a function so you need parentheses after it to call it:
map.infoWindow.hide();
0 Kudos
TurbinJ
Emerging Contributor
map.infoWindow.hide is a function so you need parentheses after it to call it:
map.infoWindow.hide();


Simple enough! Thanks so much för your help 🙂
0 Kudos