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
begin:vcard
fn:Emmanuel Belo
n:Belo;Emmanuel
org:MicroGIS SA
adr:;;ch. des Jordils 40;St-Sulpice;VD;1025;Switzerland
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur en g=C3=A9omatique
tel;work:+41 21 691 77 17
tel;fax:+41 21 691 77 86
x-mozilla-html:FALSE
url:http://www.microgis.ch
version:2.1
end:vcard

_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to