[Cartoweb-users] Children Switching
Oliver Christen
oliver.christen at camptocamp.com
Mon Jun 30 10:56:28 EDT 2008
Hi Christoph
well, if you have ONE layergroup-dropdown, you can replace it with a switch
and get a similar behaviour and avoid the layerGroup dropdown problem with
linkIt.
But, the switch is a separate element and it will NOT by displayed inside
your layer tree. By default it appears just above the tree.
You can place it anywere in the main cartoclient.tpl, but not in the layer
tree, unless you feel link extending the layers coreplugin.
regards
Oliver
----- Original Message -----
From: "Lauber Christoph" <ch.lauber at geo-thun.ch>
To: "Oliver Christen" <oliver.christen at camptocamp.com>;
<cartoweb-users at lists.maptools.org>
Sent: Monday, June 30, 2008 2:56 PM
Subject: AW: [Cartoweb-users] Children Switching
Hi Oliver
Maybe I should explain what I want to do. With the exportLinkIt Plugin or
simply URL layer_select parameter it is possible to preselect layers. But it
is not possible to change a layerGroup dropdown list. The children layers
are selected correctly. But that the user has to change the dropdown
manually is not very logical. Due to some information I think this problem
could be solved by using children switching. Is this correct so far?
The aim now is to replace the layerGroup dropdown by children switching. Or
is there a better way to go?
Thanks
Christoph
-----Ursprüngliche Nachricht-----
Von: Oliver Christen [mailto:oliver.christen at camptocamp.com]
Gesendet: Montag, 30. Juni 2008 14:37
An: Lauber Christoph; cartoweb-users at lists.maptools.org
Betreff: Re: [Cartoweb-users] Children Switching
Hi Christoph
to render a layerGroup as dropdown, you simply need to set it's rendering to
dropdown:
layers.*layerId*.rendering = dropdown
switch are used to globaly change the selection of layers displayed in the
layertree. The switch selection is outside of the main layer tree and you
display it with {$switch} in your template.
regards
Oliver
> Hi list
>
> I would like to use children switch in my projects layers.ini. I defined a
> layergroup with several switches. I thought that this layergroup will now
> be shown in the layer tree as a dropdown list. But instead i get only the
> defined default layer. Did I misunderstood the cildren switch behaviour?
> Or what do i have to extend to get a dropdownlist with the defined
> switches?
>
>
> Thanks for your help in advance
>
>
> Christoph Lauber
>
> Dütschler & Naegeli, Vermessung+Geoinformation AG
> Fliederweg 11, Postfach, 3601 Thun
>
> _______________________________________________
> 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