[OpenLayers-Users] TURN On layers Individually...

Paul james pauljame at gmail.com
Wed Jul 1 15:08:50 EDT 2009


Hello guys...

I have that layer on Openlayers :

      var _layer = new OpenLayers.Layer.MapServer(
       "PointLayer",
       _cgi,
       {
           map: _mapfile,
           singleTile: true,
            layers: ['Layer1', 'Layer2', 'Layer3'],
           transparent: "true",
           format: "image/png"
       },
    );

If I use setVisibility on PointLayer, Layer1, 2 and 3 are turned ON...
How Can I turn on/off Layer1,Layer2,Layer3 individually on javascript?

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090701/6c08b28a/attachment.html


More information about the Users mailing list