<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">That's as expected. You'll need to make those items visible first, then activate them, in a single block.<br><br>  document.worldkit.SetVariable("JLayComm",args);<br>  document.worldkit.SetVariable("JSubComm",args);<br><br>The annotations will still be visible after the text disappears. So if you want to make them invisible after,<br>you'd need to call JLayComm again.<br><br>Alternately you could write a new Javascript interface functions. Would be straightforward, with some pointers.<br><br>-Mikel<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Guilherme Pedrosa <guilherme_pl@yahoo.com.br><br>To: worldkit-dev@lists.brainoff.com<br>Sent: Thursday,
 January 4, 2007 9:04:13 PM<br>Subject: [worldKit-dev] Activation and <visible>false</visible><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi, i am trying to activate an item with its classification , using:<br><br>function activate(args) <br>{<br>  document.worldkit.SetVariable("JSubComm",args);<br>}<br><br>function layerSwitch(args) <br>{<br>  document.worldkit.SetVariable("JLayComm",args);<br>}<br><br>like i saw in worldkit.org , but , setting <visible> to false, when i try to activate an item nothing happens. If i set <visible> true, like default, it works. But i need that. When the user enter my site the map should be clean.<br><br>thanx for any help and critics, <br><br><div> </div>[]s<br>Guilherme Pedrosa<br>(21) 8103-4966 | 24274319<br>guilherme.pedrosa@superig.com.br<div><br></div></div><br>__________________________________________________<br>Fale com seus amigos  de graça com o
 novo Yahoo! Messenger
 <br><span><a target="_blank" href="http://br.messenger.yahoo.com/">http://br.messenger.yahoo.com/</a> </span><div>_______________________________________________<br>worldkit-dev mailing list<br>worldkit-dev@lists.brainoff.com<br><a target="_blank" href="http://lists.brainoff.com/listinfo.cgi/worldkit-dev-brainoff.com">http://lists.brainoff.com/listinfo.cgi/worldkit-dev-brainoff.com</a><br></div></div><br></div></div></body></html>