|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Options buttons in a layertreelayertree = [ {text: "Background images", expanded: false, radio: true, radioGrp: 'group1', children: [ {text: "Orthophoto", checked: false, layerName: "Ortho5m"}, {text: "Topographic map", checked: false, layerName: "Topo5m"}]}, {text: "Street", expanded: false, radio: true, radioGrp: 'group2', children: [ {text: "Street Names", checked: false, layerName: "Streets"}, {text: "Streets numbers", checked: false, layerName: "StreetNumbers"}]}, {text: "Cadastre", expanded: true, radio: true, radioGrp: 'group3', children: [ {text: "Blocks", checked: true, layerName: "BlocksUrbans07"}, {text: "Plots", checked: false, layerName: "PlotsUrbans07"}]}] But, the results are the same. There is not any difference. I want to "Backgrounds images", "Streets" and "Cadastre" are three options buttons. If the user chooses "Streets", he only will be able to choose the layers of "Streets". If he changes to "Cadastre", he only will be able to choose the layers belonging to "Cadastre" and so on. Regards, Dàrius ¡Nuevo Canal Mujer! Moda, belleza, sexo, dietas, embarazo. más fácil y a tu alcance. Si quieres estar a la última, no puedes perdértelo. _______________________________________________ Users mailing list Users@... http://www.mapfish.org/cgi-bin/mailman/listinfo/users |
|
|
Re: Options buttons in a layertreeOn Wednesday, November 4, 2009, Darío Rodríguez Cubillo wrote:
> > > > > > Hi! I have done what Luca said to me: > > layertree = [ > {text: "Background images", > expanded: false, > radio: true, > radioGrp: 'group1', > children: [ > {text: "Orthophoto", > checked: false, > layerName: "Ortho5m"}, > {text: "Topographic map", > > checked: false, > > layerName: "Topo5m"}]}, > > {text: "Street", > > expanded: false, > > radio: true, > > radioGrp: 'group2', > > children: [ > > {text: "Street Names", > > checked: false, > > layerName: "Streets"}, > > {text: "Streets numbers", > > > checked: false, > > > layerName: "StreetNumbers"}]}, > > {text: "Cadastre", > > > expanded: true, > > > radio: true, > > > radioGrp: 'group3', > > > children: [ > > > {text: "Blocks", > > > checked: true, > > > layerName: "BlocksUrbans07"}, > > > {text: "Plots", > > > > checked: false, > > > > layerName: "PlotsUrbans07"}]}] > > But, the results are the same. There is not any difference. I want to "Backgrounds images", "Streets" and "Cadastre" are three options buttons. If the user chooses "Streets", he only will be able to choose the layers of "Streets". If he changes to "Cadastre", he only will be able to choose the layers belonging to "Cadastre" and so on. do you want radio buttons? If so I guess you'll have to write your own node UI, by subclassing LayerNodeUI. You could also use the RadioMixin I've started working on in GeoExt, see the patch attached to <http://trac.geoext.org/ticket/169>. I'll work on this patch again in the coming days/weeks, and may provide another example showing how to use it with regular tree nodes (as opposed to GeoExt layer nodes). Cheers, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemoine@... http://www.camptocamp.com _______________________________________________ Users mailing list Users@... http://www.mapfish.org/cgi-bin/mailman/listinfo/users |
| Free embeddable forum powered by Nabble | Forum Help |