AW: [Cartoweb-users] Children Switching

Lauber Christoph ch.lauber at geo-thun.ch
Mon Jun 30 08:56:37 EDT 2008


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