Thanks for the response Eric! Here is the code for my tree as you have requested :)<br><br>layerRoot = new Ext.tree.TreeNode({<br> text: "All Layers",<br> expanded: true<br> });<br>
<br> layerRoot.appendChild(new GeoExt.tree.BaseLayerContainer({<br> text: "Base Layers",<br> map: map,<br> layerStore: mapPanel.layers,<br> expanded: true<br>
}));<br><br>//A few other overlay containers are added similarly...<br><br>//Tree menu for layers<br> var layerTree = new Ext.tree.TreePanel({<br> overflow: 'visible', // For the Combo popup<br>
region: "west",<br> title: "Map Layers", <br> root: layerRoot,<br> loader: new Ext.tree.TreeLoader({applyLoader: false}),<br> enableDD: true,<br>
collapsible: true,<br> width: 300,<br> autoScroll: true,<br> expanded: false<br> });<br><br>//Adding tree to panel<br>var panel = new Ext.Panel({<br>
//width: $(window).width(),<br> height: $(window).height() - 100,<br> //height: 700,<br> layout: "border",<br> id: 'myViewPort',<br>
renderTo: document.body,<br> items: [layerTree, mapPanel]<br> //items: [layerTree, legend, mapPanel]<br> });<br><br>"Vector layers created by Point, Path and Polygon handlers (used by the<br>
Measure control) have displayInLayerSwitcher set to false, so they<br>
should appear in the tree"<br><br>If the displayInLayerSwitcher is set to false, then shouldn't it be that these layers should<b> not</b> show in my tree? :-/<br><br>Thank you for your time and assistance,<br><br>
elshae<br><br><br><br><div class="gmail_quote">On Tue, Dec 21, 2010 at 12:09 PM, Eric Lemoine <span dir="ltr"><<a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Tuesday, December 21, 2010, IT Intern <<a href="mailto:itintern12@gmail.com">itintern12@gmail.com</a>> wrote:<br>
> Dear GeoExt Users,<br>
><br>
> I have a map using the ExtJS and GeoExtJS libraries which also incorporate the Measure Length and Area UX tools. Things are going pretty good, except that when these measuring tools are used, they create extra nodes in my tree. The nodes that get created are OpenLayers.Handler.Polygon for the Area tool and OpenLayers.Handler.Path for the length tool. Not only are these unwanted nodes for me, but these nodes also seem to have some impact on my nodes iconCls, as the icon I have set for them change back to default when these new nodes are added. I am adding some code here which I think may be relevant, but if it is not enough to explain what I am doing, I can gladly provide more :)<br>
<br>
</div>Hi<br>
<br>
<br>
Vector layers created by Point, Path and Polygon handlers (used by the<br>
Measure control) have displayInLayerSwitcher set to false, so they<br>
should appear in the tree if you use a GeoExt layer container for the<br>
tree. Maybe you're not? You haven't provided the code that creates the<br>
tree, having this code would probably help people help you.<br>
<br>
--<br>
Eric Lemoine<br>
<br>
Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>
73377 Le Bourget du Lac, Cedex<br>
<br>
Tel : 00 33 4 79 44 44 96<br>
Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
</blockquote></div><br>