Hello,
I use to represent a LayerTree, Mapfih (<a href="http://demo.mapfish.org/mapfishsample/1.2/examples/tree/tree_user_model_complex.htm" target="_top" rel="nofollow" link="external">http://demo.mapfish.org/mapfishsample/1.2/examples/tree/tree_user_model_complex.htm</a>l)
Here's a piece of code from my work:
_____________________________________
myModel = [
                
         {text: "<b>Reptils</b>",
expanded: false,
children: [
{text: "<b>Acanthodactylus erythrurus</b>",
expanded: false,
children: [
{text: "<b>Escenario A2</b>",
expanded: false,
children: [
         {
text: "2020",
                 layerName: "R10_20_A2",
                 id:"R10",
                 checked: false
},{
text: "2050",
                 layerName: "R10_50_A2",
                 checked: false
},{
text: "2080",
         layerName: "R10_80_A2",
         checked: false
}]},
_________________________________________
I have in a website a list of species (Reptils) with a short description and I want to show each species on a map. Then, when I click on one "Acanthodactylus erythrurus", I want to expand automatically, for example, from "Reptils" -> "Acanthodactylus erythrurus" -> "Scenario A2" -> "2020" and check "2020", to know which layer is active.
Is this possible?
Thank you very much,
FermÃ
<br><hr align="left" width="300">
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Layer-Tree-model-tp5341153p5341153.html">Layer Tree model</a><br>
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/OpenLayers-Users-f1822463.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br>