<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Verdana>I use setvisibility to control
layer'visibility,but it dosen't work.</FONT></DIV>
<DIV><FONT face=Verdana>allLayers.length is 1,and name is _base_</FONT></DIV>
<DIV><FONT face=Verdana>and there actually have 3 layers,why?</FONT></DIV>
<DIV> </DIV>
<DIV>following the code:</DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana>var map = myKaMap.getCurrentMap();<BR>var allLayers =
map.getAllLayers();<BR>for (var i=0; i<allLayers.length; i++)
{<BR>
if(allLayers[i].name=="construction")<BR>
allLayers[i].setVisibility(false);<BR>}</DIV>
<DIV align=left><FONT size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT size=2>Justin</FONT></DIV>
<DIV><FONT size=2>2006-08-21</FONT></FONT></DIV></FONT></BODY></HTML>