[Cartoweb-users] Children Switching

Dahinden Adrian a.dahinden at geo-thun.ch
Tue Feb 17 02:42:03 EST 2009

Hi Oliver

Now the label 'Switch' appears with the default ZP layer.
But I've still the same problem when I choose an other Switch ID: The content of the tree doesn't change..
It looks like cartoweb load the layer, but the three is always the same (now the default ZP layer).


-----Ursprüngliche Nachricht-----
Von: Oliver Christen [mailto:oliver.christen at camptocamp.com] 
Gesendet: Dienstag, 17. Februar 2009 08:17
An: Dahinden Adrian; cartoweb-users at lists.maptools.org
Betreff: Re: [Cartoweb-users] Children Switching


maybe add

layers.Switch.children.default = ZP


----- Original Message ----- 
From: "Dahinden Adrian" <a.dahinden at geo-thun.ch>
To: <cartoweb-users at lists.maptools.org>
Sent: Monday, February 16, 2009 4:36 PM
Subject: [Cartoweb-users] Children Switching

Hi list

In my Project I want to use switches for displaying the layers. I have 
changed the layers.ini file like it is described in the User Manual 
It looks like

switches.switch1.label = ZP
switches.switch2.label = LK
switches.switch3.label = GK

layers.root.className = LayerGroup
layers.root.children =  Abfragen, Sit, Switch, ...
layers.root.rendering = block

layers.Switch.className = LayerGroup
layers.Switch.children.switch1 = ZP
layers.Switch.children.switch2 = LK
layers.Switch.children.switch3 = GK
layers.Switch.label = Switch

layers.ZP.className = Layer
layers.ZP.label = Zonenplan
layers.ZP.msLayer = ZP


In the layertab the switch appears as a dropdown with following Switch Ids:
'Default', 'ZP', 'LK' and 'GK'
The position should be the default one (above the layers tree). The label 
'Switch' appears as a block and a tree rendering without any content. When I 
choose a other Switch ID (f.e. LK ) the content of the tree doesn't change. 
Does anybody know why it isn't working?

Are there other things I have to change??

Thanks for your help,


Adrian Dahinden

Dütschler & Naegeli
Vermessung und Geoinformation AG
Fliederweg 11
3601 Thun

Tel 033 225 40 50
Fax 033 225 40 60

Email mailto:a.dahinden at geo-thun.ch
Homepage www.geo-thun.ch
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org

More information about the Cartoweb-users mailing list