Hmmmm. OK- try viewing the source code from your GeoServer preview and grab
the var bounds and var options bits. Something like this:
var bounds = new OpenLayers.Bounds(
-79.762, 40.496,
-71.856, 45.016
);
var options = {
controls: [],
maxExtent: bounds,
maxResolution: 0.0308828125,
projection: "EPSG:4326",
units: 'degrees'
};
map = new OpenLayers.Map('map', options);
Update your script with these bits and add the following after your
controls:map.zoomToExtent(bounds);
-----
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/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514740.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users