|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Options buttons in a layertreelayertree = [ {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 _______________________________________________ Users mailing list Users@... http://www.mapfish.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Options buttons in a layertree2009/11/2 Darío Rodríguez Cubillo <dariorocu@...>:
> > 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. i think you must add radio: true, radioGrp: 'group1' the radioGrp serve to create different group > Thank your very much and best regards. > Dàrius regard Luca _______________________________________________ Users mailing list Users@... http://www.mapfish.org/cgi-bin/mailman/listinfo/users |
| Free embeddable forum powered by Nabble | Forum Help |