[Cartoweb-users] cw3.1: menu tree and radio button

Emmanuel Belo emmanuel.belo at microgis.ch
Tue Feb 21 11:25:53 EST 2006


Hi,

i'm trying to set up a layer menu as a tree like this:

root \-- fond_communal (layer, should always be visible)
      \-- fond_query (layer, should always be visible)
      \-- thematics (group)
          \-- participation (layer)
          \-- parti_en_tete (layer)
          \-- results (group)
              \-- pop (layer)
              \-- soc (layer)
              \-- vert (layer)

I would like that only one layer can be selected at once. To do this i 
use the radio button, but it doesn't work in a tree mode. The  result is:

(participation | parti_en_tete) AND (pop | soc | vert)

For choropleth maps, this is a problem...

If you have an advice ;-)

best regards,

Emmanuel Belo

layers.ini:

autoClassLegend = true

layers.root.className = LayerGroup
layers.root.label = empty tree
layers.root.children =  thematics, fond_communal, fond_query

layers.thematics.className = LayerGroup
layers.thematics.label = thématiques
layers.thematics.rendering = radio
layers.thematics.children = participation, parti_en_tete, results

layers.results.className = LayerGroup
layers.results.label = Résultats 2001
layers.results.rendering = radio
layers.results.children = pop, soc, vert

layers.participation.className = Layer
layers.participation.label = Participation
layers.participation.msLayer = participation

layers.parti_en_tete.className = Layer
layers.parti_en_tete.label = Parti en tête
layers.parti_en_tete.msLayer = parti_en_tete

layers.pop.className = Layer
layers.pop.label = parti_ouvrier_populaire
layers.pop.msLayer = pop

layers.soc.className = Layer
layers.soc.label = Parti socialiste
layers.soc.msLayer = soc

layers.vert.className = Layer
layers.vert.label = parti_écologique
layers.vert.msLayer = vert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: emmanuel.belo.vcf
Type: text/x-vcard
Size: 337 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/cartoweb-users/attachments/20060221/d45524c5/emmanuel.belo.vcf


More information about the Cartoweb-users mailing list