[OpenLayers-Users] How to have overlays off by default

Barker, Doug dbarker at F-W.com
Wed Jul 1 15:57:25 EDT 2009


Hi,
How do I have the overlays in a map turned off when the map starts up?
I tried the two items below (commented out).

// CE
ce = new OpenLayers.Layer.WMS(
"CE", "http://localhost:8080/geoserver/wms",
{
width: '800',
layers: 'prof_reg:states50D_ce',
styles: '',
srs: 'EPSG:4269',
height: '317',
format: format,
//displayInLayerSwitcher: false,
//visibility: false,
transparent: true
},
{singleTile: true, ratio: 1}
);

Thanks
Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090701/cebe0e1a/attachment.html


More information about the Users mailing list