<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<blockquote cite="mid:A5B91344C3484A1D847FEAA7998626F4@Lenovo"
type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<div dir="ltr">
<div style="FONT-FAMILY: 'Arial'; COLOR: #000000; FONT-SIZE:
10pt">
<div>You’re right. I wasn’t paying much attention to the
actual removal logic there. I was mostly trying to
demonstrate the use of cascade and/or eachChild. I used
something like that in a project were there were all leaf
nodes were always part of a group node.</div>
</div>
</div>
</blockquote>
Just to clarify here. This is in your main code, not in added to
Geoext somewhere. So when you remove a layer in your main code (I go
mapPanel.map.layers[i].destroy() to remove), you are locating the
associated node in the layertree and then executing your code?<br>
<p><span style="font-family:'Arial';font-size:8pt; color:#000000;">Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.</span></p>
<p><span style="font-family:'Arial';font-size:8pt; color:#000000;"> </span></p></body>
</html>