[Users] TreePanel control doesn't seem to be updating layers when I move them
Ryan Williams
rwilliams at paqinteractive.com
Wed Sep 1 23:12:05 CEST 2010
Do the other functions work, like turning layers on and off?
I don't recall doing anything special to make the drag and drop work and
it looks like you have it enabled.
Have you checked for javscript errors?
On 9/1/2010 3:43 PM, Andrew Stewart wrote:
>
> 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.
>
> //declare root tree node
>
> var layerRoot = new Ext.tree.TreeNode({
>
> text: "All Legend Items",
>
> expanded: true
>
> });
>
> //add children to root node
>
> layerRoot.appendChild(layerList_Labels)
>
> layerRoot.appendChild(layerlist_AOI)
>
> layerRoot.appendChild(layerlist_Trails)
>
> layerRoot.appendChild(layerlist_Footprints)
>
> layerRoot.appendChild(layerlist_LegalFabric)
>
> layerRoot.appendChild(layerlist_ParcelFabric)
>
> layerRoot.appendChild(layerlist_Base)
>
> layerRoot.appendChild(layerlist_Orthos)
>
> var layerTree = new Ext.tree.TreePanel({
>
> title: '',
>
> renderTo: 'legend',
>
> root: layerRoot,
>
> enableDD: true,
>
> applyLoader: true,
>
> rootVisible: false
>
> });
>
> ------------------------------------------------------------------------
> 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.
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
--
Ryan Williams, GISP
GIS Analyst / Programmer
PAQ Interactive Inc.
Monticello, IL
www.paqinteractive.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100901/447e9759/attachment.htm
More information about the Users
mailing list