Some parts of this message have been removed.
Learn more about Nabble's security policy.
Hi!
I'm
building a very complex layertree. My layertree has got 3 main folders layers: background
images, street and cadastre. The most important is the folder
cadastre which is divided into 3 folders. These, are the different years for
which cadastral information is available (2007, 2008 and 2009).
Each year has urban and rural cadastral information. Urban and rural
folders have, finally, layers of information.
The
code of the layertree described is:
layertree = [
{text: "Background
images",
expanded: false,
children: [
{text: "Nothing",
icon: 'Images/blanc.gif',
expanded: true,
checked: true,
layerName:
"WhiteSurface"},
{text: "Orthophoto
1:5000",
icon: 'Images/blanc.gif',
expanded: false,
checked: false,
layerName: "Ortho5m"},
{text: "Topographic map
1:5000",
icon: 'Images/blanc.gif',
expanded: false,
checked: false,
layerName: "Topo5m"}]
},
{text: "Street",
expanded: false,
children: [
{text: "Street names",
icon: 'Images/blanc.gif',
checked: false,
layerName: "Streets"},
{text: "Street numbers",
icon:'Images/blanc.gif',
checked: false,
layerName:
"StreetNumbers"},
{text: "Other",
icon:'Images/blanc.gif',
checked: false,
layerNames:
["Highways","Roads ","Rivers"]}]
},
{text: "Cadastre",
expanded: true,
children: [
{text: "2007",
expanded: true,
children: [
{text: "Urban",
expanded: true,
checked: false,
children: [
{text: "Blocks",
icon: 'Images/blanc.gif'
checked: true,
layerName:
"BlocksUrbans07"},
{text: "Plots",
icon: 'Images/blanc.gif',
checked: false,
layerName:
"PlotsUrbans07"}]
},
{text: "Rural",
expanded: false,
checked: false,
children: [
{text: "Blocks",
icon: 'Images/blanc.gif'
checked: false,
layerName:
"BlocksRurals07"},
{text: "Plots",
icon: 'Images/blanc.gif',
checked: false,
layerName:
"PlotsRurals07"}]
}
] },
{text: "2008",
expanded: false,
children: [
{text: "Urban",
expanded: false,
checked: false,
children: [
{text: "Blocks",
icon: 'Images/blanc.gif'
checked: false,
layerName:
"BlocksUrbans08"},
{text: "Plots",
icon: 'Images/blanc.gif',
checked: false,
layerName:
"PlotsUrbans08"}]
},
{text: "Rural",
expanded: false,
checked: false,
children: [
{text: "Blocks",
icon: 'Images/blanc.gif'
checked: false,
layerName:
"BlocksRurals08"},
{text: "Plots",
icon: 'Images/blanc.gif',
checked: false,
layerName:
"PlotsRurals08"}]
}
] },
{text: "2009",
expanded: false,
children: [
{text: "Urban",
expanded: false,
checked: false,
children: [
{text: "Blocks",
icon: 'Images/blanc.gif'
checked: false,
layerName:
"BlocksUrbans09"},
{text: "Plots",
icon: 'Images/blanc.gif',
checked: false,
layerName:
"PlotsUrbans09"}]
},
{text: "Rural",
expanded: false,
checked: false,
children: [
{text: "Blocks",
icon: 'Images/blanc.gif'
checked: false,
layerName: "BlocksRurals09"},
{text: "Plots",
icon: 'Images/blanc.gif',
checked: false,
layerName:
"PlotsRurals09"}]
}
]}
]}
];
I
wish that the years 2007, 2008 and 2009 were options
buttons. This means that the user can only select one year cadastral
information. Thus, the user will not mix cadastral information from different
years. In this application, we don’t want to visualize, for example, urbans
blocks of the 2007, rurals plots of the 2008 and urbans blocks of the 2009. We
want to separate the cadastre for years and, therefore, we could not mix the
cadastral information of different years.
I
don’t know if I have explained well. If is necessary, I can extend the
explanation.