[Users] Grouping kml layers in a tree panel

Jason Woolard Jason.Woolard at noaa.gov
Sun Jul 25 21:07:30 CEST 2010


hi all,

I'm fairly new to JS and brand new to GeoExt. I've been teaching myself 
from some of the excellent examples in the tutorial.

I've have a tree panel with two groups (with plans for more once it's 
working). I'd like to display the G1 layers under Group1 and the G2 
layers under G2, etc. The problem is all of the layers appear under each 
group. Reading other posts it seems the filter function is the way to 
accomplish separating out the layers but I've been unable to get it 
working. Am I on the wrong track here?

the map can be viewed here:
http://ngs.woc.noaa.gov/storms/nov09_ne/ge/2010dev/index6.html

the js here:
http://ngs.woc.noaa.gov/storms/nov09_ne/ge/2010dev/tree6.js

Much thanks for any advice.



More information about the Users mailing list