[Cartoweb-users] Children Switching

Oliver Christen oliver.christen at camptocamp.com
Tue Feb 17 03:21:06 EST 2009

check in Firefox's Firebug Concole if you see a valid result being returned 
by the ajax request.
it is possible the target id in the page is not correct and as a result the 
new html fragment is not injected correctly into the page.

what did you set as folderId in your layer.ini ?

----- Original Message ----- 
From: "Dahinden Adrian" <a.dahinden at geo-thun.ch>
To: "Oliver Christen" <oliver.christen at camptocamp.com>; 
<cartoweb-users at lists.maptools.org>
Sent: Tuesday, February 17, 2009 8:42 AM
Subject: AW: [Cartoweb-users] Children Switching

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