Thanks to Christian, I made some progress, but the following program still does not work. I've figured out Firebug enough that I think the problem is with the url that gets constructed. It comes across as:
For some reason my BBOX is getting changed from what I set it to in the program (via OpenLayers.Bounds). Any suggestions?
-Darrin
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenLayers Basic Single WMS Example</title>
<link rel="stylesheet"
<head>
<title>OpenLayers Basic Single WMS Example</title>
<link rel="stylesheet"
href=""
type="text/css" />
<style type="text/css">
#map {
width: 644px;
height: 289px;
border: 1px solid black;
}
</style>
<script src=""></script>
<script type="text/_javascript_">
var map, layer, bounds;
function init(){
map = new OpenLayers.Map( 'map' );
&nbs p; map.tileSize = (new OpenLayers.Size(644,289));
bounds = new OpenLayers.Bounds(-180,-90,180,90);
<style type="text/css">
#map {
width: 644px;
height: 289px;
border: 1px solid black;
}
</style>
<script src=""></script>
<script type="text/_javascript_">
var map, layer, bounds;
function init(){
map = new OpenLayers.Map( 'map' );
&nbs p; map.tileSize = (new OpenLayers.Size(644,289));
bounds = new OpenLayers.Bounds(-180,-90,180,90);
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://svs.gsfc.nasa.gov/cgi-bin/wms?",
{layers: '3338_24550',
VERSION: "1.3.0",
format: 'image/png',
styles: "opaque",
bbox: bounds,
crs: 'CRS:84'});
"http://svs.gsfc.nasa.gov/cgi-bin/wms?",
{layers: '3338_24550',
VERSION: "1.3.0",
format: 'image/png',
styles: "opaque",
bbox: bounds,
crs: 'CRS:84'});
map.addLayer(layer);
map.zoomToMaxExtent();
}
</script>
</head>
<body >
<h1 id="title">Basic Single WMS Example</h1>
<div id="tags"></div>
<div id="shortdesc">Show a Simple Map</div>
<div id="map"></div>
<div id="docs">
This example shows a very simple layout with minimal controls. This example uses a single WMS base layer.
</div>
</body>
</html>
This example shows a very simple layout with minimal controls. This example uses a single WMS base layer.
</div>
</body>
</html>
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
