<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial, sans-serif" size="2">
<div>I am faily new to GeoExt and openlayers. What I am trying to do is add multiple filters to a layercontainer so that I can add multiple layers to each group. Not sure if this is the best way to do this but what I want to do is add all my Street Labels to
a group called "Labels" I can add one no problem called Overview Streets with the following code, but I need to add additional layers like one called Quadrant Streets. When I try to modify the filter code to add additional names it doesn't work and I get javascript
errors. Any help appreciated!</div>
<div> </div>
<div><font face="Courier New" color="#008000">//Define Layer List Control - Tree Control for Legend Control</font></div>
<div><font face="Courier New"> <font color="#0000FF">var</font> layerList_Labels = <font color="#0000FF">new</font> GeoExt.tree.LayerContainer({</font></div>
<div><font face="Courier New"> text: <font color="#A31515">'Labels'</font>,</font></div>
<div><font face="Courier New"> layerStore: mapPanel.layers,</font></div>
<div><font face="Courier New"> leaf: <font color="#0000FF">false</font>,</font></div>
<div><font face="Courier New"> expanded: <font color="#0000FF">false</font>,</font></div>
<div><font face="Courier New"> loader: {</font></div>
<div><font face="Courier New"> filter: <font color="#0000FF">function</font>(record) {</font></div>
<div><font face="Courier New"> <font color="#0000FF">return</font> record.<font color="#0000FF">get</font>(<font color="#A31515">"layer"</font>).name.indexOf(<font color="#A31515">"Overview Streets"</font>) !== -1 (need to add Quadrant
Streets here also)</font></div>
<div><font face="Courier New"> }</font></div>
<div><font face="Courier New"> }</font></div>
<div><font face="Courier New"> });</font></div>
<div><font face="Courier New"> </font></div>
<div><font face="Courier New" color="#000080"><br>
</font></div>
<div><font face="Courier New"> </font></div>
<div> </div>
</font>
<DIV><P><HR>
This e-mail is intended for the original recipient(s) only. If you have received it in error, please advise the sender and delete this message.
</P></DIV>
</body>
</html>