<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Do the other functions work, like turning layers on and off? <br>
I don't recall doing anything special to make the drag and drop work
and it looks like you have it enabled.<br>
Have you checked for javscript errors? <br>
<br>
On 9/1/2010 3:43 PM, Andrew Stewart wrote:
<blockquote
cite="mid:94816848A8EB3941B1E8592F425827A96845C804AF@chex2.crdnet.ca"
type="cite">
<title></title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18939">
<div>
<p><font color="#008000"><font color="#008000"><font size="2"><span
class="869554120-01092010"><font color="#0000ff" face="Arial"> I am
trying to make my TreePanel / LayerContainers actually move the
openlayers around when I move them in either their specific groups or
in the groups themselves. I have tried experimenting by moving layers
up and down (using drag and drop) but it does not seem to have any
effect. Am I missing some extra code to make this possible? Thanks for
advice.</font></span></font></font></font></p>
<p><font color="#008000"><font color="#008000"><font size="2"><span
class="869554120-01092010"></span></font></font></font> </p>
<p><font color="#008000"><font color="#008000"><font size="2"><span
class="869554120-01092010"> </span>//declare root tree node</font></font></font></p>
<font size="2"></font>
<p><font color="#0000ff" size="2"><font color="#0000ff" size="2">var</font></font><font
size="2"> layerRoot = </font><font color="#0000ff" size="2"><font
color="#0000ff" size="2">new</font></font><font size="2">
Ext.tree.TreeNode({</font></p>
<p><font size="2">text: </font><font color="#a31515" size="2"><font
color="#a31515" size="2">"All Legend Items"</font></font><font size="2">,</font></p>
<p><font size="2">expanded: </font><font color="#0000ff" size="2"><font
color="#0000ff" size="2">true</font></font></p>
<font size="2"></font>
<p><font size="2">});</font></p>
<p><font color="#008000" size="2"><font color="#008000" size="2">//add
children to root node</font></font></p>
<font size="2"></font>
<p><font size="2">layerRoot.appendChild(layerList_Labels)</font></p>
<p><font size="2">layerRoot.appendChild(layerlist_AOI)</font></p>
<p><font size="2">layerRoot.appendChild(layerlist_Trails)</font></p>
<p><font size="2">layerRoot.appendChild(layerlist_Footprints)</font></p>
<p><font size="2">layerRoot.appendChild(layerlist_LegalFabric)</font></p>
<p><font size="2">layerRoot.appendChild(layerlist_ParcelFabric)</font></p>
<p><font size="2">layerRoot.appendChild(layerlist_Base)</font></p>
<p><font size="2">layerRoot.appendChild(layerlist_Orthos)</font></p>
<p><font color="#0000ff" size="2"><font color="#0000ff" size="2">var</font></font><font
size="2"> layerTree = </font><font color="#0000ff" size="2"><font
color="#0000ff" size="2">new</font></font><font size="2">
Ext.tree.TreePanel({</font></p>
<p><font size="2">title: </font><font color="#a31515" size="2"><font
color="#a31515" size="2">''</font></font><font size="2">,</font></p>
<p><font size="2">renderTo: </font><font color="#a31515" size="2"><font
color="#a31515" size="2">'legend'</font></font><font size="2">,</font></p>
<p><font size="2">root: layerRoot,</font></p>
<p><font size="2">enableDD: </font><font color="#0000ff" size="2"><font
color="#0000ff" size="2">true</font></font><font size="2">,</font></p>
<p><font size="2">applyLoader: </font><font color="#0000ff" size="2"><font
color="#0000ff" size="2">true</font></font><font size="2">,</font></p>
<p><font size="2">rootVisible: </font><font color="#0000ff" size="2"><font
color="#0000ff" size="2">false</font></font></p>
<font size="2">
<p>});</p>
</font></div>
<div>
<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.
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ryan Williams, GISP
GIS Analyst / Programmer
PAQ Interactive Inc.
Monticello, IL
<a class="moz-txt-link-abbreviated" href="http://www.paqinteractive.com">www.paqinteractive.com</a></pre>
</body>
</html>