[Users] Set visibility on Sub-layers
Paul james
pauljame at gmail.com
Wed Oct 14 16:39:32 CEST 2009
Thanks bart...
But I need set all layers to build up my treeview, like that:
nodeType: "gx_layer",
layer: "Streets",
isLeaf: false,
loader: {
param: "LAYERS",
...
On Wed, Oct 14, 2009 at 11:16 AM, <bartvde at osgis.nl> wrote:
> Hi Paul,
>
> only by using LAYERS: ['layer1', 'layer2'].
>
> Then later on, when you need more layers, you should change the LAYERS
> param using the mergeNewParams function.
>
> Best regards,
> Bart
>
> > Hello guys... I have that set of sublayers :
> >
> > new OpenLayers.Layer.MapServer("Streets",
> > _cgi, {
> > map: _mapfile,
> > "LAYERS": ['Layer1','Layer2','Layer3','Layer4',
> > 'Layer5'],
> > transparent: true,
> > format: "image/png"
> > }, {
> > isBaseLayer: false,
> > buffer: 0,
> > displayInLayerSwitcher: false,
> > visibility: false
> > })
> >
> > I悲 like to start with Layer1 and Layer2 with visibility true ... How can
> > I
> > do that?
> >
> > Paul
> > _______________________________________________
> > Users mailing list
> > Users at geoext.org
> > http://www.geoext.org/cgi-bin/mailman/listinfo/users
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20091014/834f4b91/attachment.htm
More information about the Users
mailing list