[Cartoweb-users] Children Switching

Oliver Christen oliver.christen at camptocamp.com
Tue Feb 17 04:50:59 EST 2009


can you show me the result returned by the ajax request after a switch 
change ?


----- 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 10:31 AM
Subject: AW: [Cartoweb-users] Children Switching



In firebug's console I see the correct switch_id (f.e. switch3) when I 
choose an other switch. But I don't know if the answer is correct (I can't 
interprete it).

There is no folderId set in my layers.ini (clientside). I added the line 
'folderId = layerTree' in layers.ini (clientside) and in cartoclient.tpl I 
changed the folder2 into:

    <!-- folder 2 starts here -->
    <div id="folder2" class="folder" style="height:{$mainmap_height-70}px; 
overflow:auto;">
<!--<div id="switchcontainer">{$switches}</div>-->
        <div id="layerTree">
{$switches}
{$layers}
  </div>
    </div>
    <!-- end of folder 2 -->

I'm sorry, but the problem is still the same with these changes.

Regards,

Adrian

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


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).

Adrian


-----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


hi

maybe add

layers.Switch.children.default = ZP

regards
Oliver

----- 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
(http://www.cartoweb.org/doc/cw3.5/xhtml/user.layers.html#user.layers.tree.children).
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

etc.

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,

Regards

Adrian Dahinden


Dütschler & Naegeli
Vermessung und Geoinformation AG
Fliederweg 11
Postfach
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
http://lists.maptools.org/mailman/listinfo/cartoweb-users





More information about the Cartoweb-users mailing list