<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt;color:#000000;"><div>Hi,</div><div><br></div><div>I want to know how to create a geoext layer tree....but the "right" way!</div><div><br></div><div>I have seen examples such as here in the Haiiti Map ("<a href="http://hypercube.telascience.org/haiti/">http://hypercube.telascience.org/haiti/</a>") where multiple stores are created to group the layers together and then add them as nodes to the tree root.</div><div><br></div><div>However, although this works, Mr Andreas Hocevar has written this regarding a similar topic regarding creating a hierarchical tree structure...."What you want is easy to do. Just get rid of the multiple layer stores. There are in fact many ways to do what you want. What I have done previously, for example, is to have layer nodes with a "group" field, and set the filter of the
LayerLoader of each LayerContainer to only accept layer records that match a specific group name."</div><div><br></div><div>I take his word as gospel, and therefore would like to know (possibly with a few code examples if anyone has any) what is the best way to achieve a nested tree structure with Directories in Directories which contain layers such as in the following diagram</div><div><br></div><div><br></div><div>Root > BaselayersDir</div><div><div><span class="Apple-tab-span" style="white-space: pre; ">                </span>>BaseLayer 1</div><div><span class="Apple-tab-span" style="white-space: pre; ">                </span>>BaseLayer 2</div></div><div><span class="Apple-style-span"> > </span>Dir<span class="Apple-style-span">1</span></div><div><div><span class="Apple-style-span"><span class="Apple-tab-span" style="white-space: pre; ">                </span>></span>Dir<span class="Apple-style-span">1:1</span></div><div><div><span
class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 1</div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 2</div></div><div><span class="Apple-style-span"><span class="Apple-tab-span" style="white-space: pre; ">                </span>></span>Dir<span class="Apple-style-span">1:1</span></div><div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 1</div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 2</div></div><div><span class="Apple-style-span"><span class="Apple-tab-span" style="white-space: pre; ">                </span>></span>Dir<span class="Apple-style-span">1:2</span></div></div><div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 1</div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 2</div></div><div><div><span class="Apple-style-span">
> </span>Dir<span class="Apple-style-span">2</span></div></div><div><div><span class="Apple-style-span"><span class="Apple-tab-span" style="white-space: pre; ">                </span>></span>Dir<span class="Apple-style-span">2:1</span></div><div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 1</div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 2</div></div><div><span class="Apple-style-span"><span class="Apple-tab-span" style="white-space: pre; ">                </span>></span>Dir<span class="Apple-style-span">2:1</span></div><div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 1</div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 2</div></div><div><span class="Apple-style-span"><span class="Apple-tab-span" style="white-space: pre; ">                </span>></span>Dir<span class="Apple-style-span">2:2</span></div></div><div><div><span
class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 1</div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 2</div></div><div><div><span class="Apple-style-span"> > </span>Dir<span class="Apple-style-span">3</span></div></div><div><div><div><span class="Apple-style-span"><span class="Apple-tab-span" style="white-space: pre; ">                </span>></span>Dir<span class="Apple-style-span">3:1</span></div><div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 1</div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 2</div></div><div><span class="Apple-style-span"><span class="Apple-tab-span" style="white-space: pre; ">                </span>></span>Dir<span class="Apple-style-span">3:1</span></div><div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 1</div><div><span class="Apple-tab-span"
style="white-space: pre; ">                        </span>>Layer 2</div></div><div><span class="Apple-style-span"><span class="Apple-tab-span" style="white-space: pre; ">                </span>></span>Dir<span class="Apple-style-span">3:2</span></div></div></div><div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 1</div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>>Layer 2</div></div><div><div><br></div></div><div><br></div><div>How many way can one achieve this then? and what is a good method and what is a bad one?</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Thanks for any advice,</div><div><br></div><div>Rob </div><div><br></div><div><br></div><div><br></div><div><br></div><div style="position:fixed"></div>
</div></body></html>