[Cartoweb-users] layer dependings

Oliver Christen oliver.christen at camptocamp.com
Mon Apr 2 07:47:38 EDT 2007


Hi,

maybe make a layergroup with the "aggregate" parameters, which allow to bind 
two layers together.
and set the second layer as hidden.

this way, when you activate/deactivate the parent groups, it should 
activate/deactivate both child layers?

regards
Oliver

> Hi,
> how to set depending of layer please?
>
> There is layer "1" and layer "2".
> Layer "2" is hidden in legend, but fully depend on layer "1"
> I need to de/activate layer "2" when is de/activated layer "1".
>
> Is it possible?
>
> I try "LayerGroup" with hidden children in project.ini
> mapInfo.initialMapStates.default.layers.myHiddenLayer.hidden = true
>
> but this solution is not very happy.
> It doesn't work properly.
>
> Thanks
>
> wochter
> _______________________________________________
> 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