Yeah the answers that Bryan gave me helped me a great deal and now the Google
layers are working beautifully, however the Geoserver layers still do NOT
work...
I also tried switching to the /dev/OpenLayers.js in my script tags, but that
didn't cut it either.
Maybe I should mention that me cite:NE12 layer is a geotiff and my
cite:arkansas is point geometry. Geoserver shows the layers in the
OpenLayer preview just fine and I have viewed the source to check that I am
directing my script properly. but it's still a no go :-/ All help is
greatly appreciated! Below is my current script...
Thanks,
elshae
<html>
<head>
<link rel="stylesheet"
href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
<link rel="stylesheet"
href="http://openlayers.org/dev/examples/style.css" type="text/css" />
<script src="http://openlayers.org/api/OpenLayers.js"></script>
<script type="text/javascript">
var map;
function init() {
// Create the map object
map = new OpenLayers.Map('map');
var NE_image = new OpenLayers.Layer.WMS(
"Natural Earth", "http://localhost:8080/geoserver/wms",
{layers: 'cite:NE12'}
);
var arkansas = new OpenLayers.Layer.WMS(
"Arkansas", "http://localhost:8080/geoserver/wms",
{layers: 'cite:arkansas'}
);
// Add layer to map
map.addLayers([arkansas, NE_image]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
}//End init()
</script>
</head>
<body onload="init()">
<h1 id="title">OpenLayers: Google Layer Example</h1>
<div id="map" class="smallmap" style="width: 1500; height: 500"></div>
</body>
</html>
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514533.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