[OpenLayers-Users] Layer Tree model
Fermi Garriga
fermi.garriga at ctfc.cat
Tue Jul 27 03:38:52 EDT 2010
Hello,
I use to represent a LayerTree, Mapfih (
http://demo.mapfish.org/mapfishsample/1.2/examples/tree/tree_user_model_complex.htm
http://demo.mapfish.org/mapfishsample/1.2/examples/tree/tree_user_model_complex.htm
l)
Here's a piece of code from my work:
_____________________________________
myModel = [
{text: "Reptils",
expanded: false,
children: [
{text: "Acanthodactylus erythrurus",
expanded: false,
children: [
{text: "Escenario A2",
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í
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Layer-Tree-model-tp5341153p5341153.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100727/02e78ae8/attachment.html
More information about the Users
mailing list