Options buttons in a layertree

View: New views
1 Messages — Rating Filter:   Alert me  

Options buttons in a layertree

by Darío Rodríguez Cubillo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi! I'm building the next LAYERTREE:

layertree = [

{text: "Background images",

expanded: false,

children: [                                                              

{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: "Cadastre",

expanded: true,

children: [                                                     

{text: "Blocks",

icon: 'Images/blanc.gif'

checked: true,

layerName: "BlocksUrbans07"},

{text: "Plots",

icon: 'Images/blanc.gif',

checked: false,

layerName: "PlotsUrbans07"}]

}

]


I wish that "Background images", "Street" and "Cadastre" were options buttons. This means than the user can only select one. Once selecte one, the user will be able to choose the corresponding layers belonging to the option button. For example, if the user chooses "Background images" (therefore, he WILL NOT BE ABLE choose "Street" and "Cadastre"), he will be able select "Orthophoto 1:5000" and "Topographic map 1:5000. Thus, the user will not be able to mix the information of the three groups.
If I have not explained well, I can extend the detalis.
Thank your very much and best regards.
Dàrius

¿Para qué descargarte juegos, si tienes los más divertidos online? Entra ya en Juegos y prepárate para muchas horas de diversión
_______________________________________________
Dev mailing list
Dev@...
http://www.mapfish.org/cgi-bin/mailman/listinfo/dev