First of all, many thanks for your continuous help and speedy responses!
However, I hate to say that it still isn't working :(
When I use your code, Google Layers work a charm! I am very happy about
that!
However, Geoserver overlays are not showing. I really really don't
understand why either...
They work fine from OpenLayers previews and here is the code I get for each:
//Snippets of cite:NE12 preview:
var bounds = new OpenLayers.Bounds(
-1.49, -0.001,
-1.487, 0.001
);
var options = {
controls: [],
maxExtent: bounds,
maxResolution: 0.00001171875,
projection: "EPSG:4326",
units: 'degrees'
};
map = new OpenLayers.Map('map', options);
// setup single tiled layer
untiled = new OpenLayers.Layer.WMS(
"NE12 - Untiled", "http://localhost:8080/geoserver/wms",
{
height: '341',
width: '512',
layers: 'cite:NE12',
styles: '',
srs: 'EPSG:4326',
format: format
},
{singleTile: true, ratio: 1}
);
//Snippets of cite:arkansas preview
var bounds = new OpenLayers.Bounds(
-94.616, 33.012,
-89.646, 36.508
);
var options = {
controls: [],
maxExtent: bounds,
maxResolution: 0.0194140625,
projection: "EPSG:900913",
units: 'm'
};
map = new OpenLayers.Map('map', options);
http://osgeo-org.1803224.n2.nabble.com/file/n5515116/example.html
example.html // setup single tiled layer
untiled = new OpenLayers.Layer.WMS(
"arkansas - Untiled",
"http://localhost:8080/geoserver/wms",
{
height: '360',
width: '512',
layers: 'cite:arkansas',
styles: '',
srs: 'EPSG:900913',
format: format
},
{singleTile: true, ratio: 1}
);
The weirder part is that your code works wonders with another layer I have
on Geoserver. This other layer was also grabbed from the PostGIS database,
but has MULTIPOLYGON data. I really need to be able to do this with all
kinds of layers, as my final product should include them all. Thanks, you
have helped me a great deal so far :)
elshae
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5515116.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