[Users] Set visibility on Sub-layers

bartvde at osgis.nl bartvde at osgis.nl
Wed Oct 14 16:16:43 CEST 2009


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




More information about the Users mailing list