Try something like this:
var watercourses2 = new OpenLayers.Layer.WMS(
"Watercourses",
"http://gis.npca.ca/geoserver/gwc/service/wms?",
{
layers: 'floodmapping:watercourses_2k',
transparent: true,
format: 'image/png'
},
{
isBaseLayer: false,
visibility: true,
minScale: 1000000
}
);
http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Layer/WMS-js.html#OpenLayers.Layer.WMS.OpenLayers.Layer.WMS
http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Layer/WMS-js.html#OpenLayers.Layer.WMS.OpenLayers.Layer.WMS
----- Bryan R. McBride, GISP http://www.bryanmcbride.com bryanmcbride.com http://geoserving.net/ geoserving.net -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Scale-dependent-layer-problems-tp5295582p5297365.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
