<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks, Chris.<br>
<br>
I have modified my JavaScript code as follows:<br>
<br>
function init()<br>
{<br>
format = 'image/png';<br>
map = new OpenLayers.Map("map");<br>
wms = new OpenLayers.Layer.WMS(<br>
"esv:countries - Tiled",
<a class="moz-txt-link-rfc2396E" href="http://localhost:8080/geoserver/wms">"http://localhost:8080/geoserver/wms"</a>,<br>
{<br>
styles: '',<br>
layers: 'esv:countries',<br>
width: '800',<br>
height: '362',<br>
srs: 'EPSG:4326',<br>
format: format,<br>
tiled: 'true',<br>
tilesOrigin : "-198,-98.68117980957031"<br>
},<br>
{buffer: 0}<br>
);<br>
<br>
<br>
map.addLayer(wms);<br>
}<br>
<br>
The page now loads without errors, and the pan and zoom controls are
displayed; but the esv:countries layer does not appear.<br>
<br>
Any ideas?<br>
<br>
Thanks!<br>
<br>
Greg<br>
<br>
Christopher Schmidt wrote:
<blockquote cite="mid:20080814201351.GA9772@metacarta.com" type="cite">
<pre wrap="">On Thu, Aug 14, 2008 at 01:08:31PM -0700, Greg Ederer wrote:
</pre>
<blockquote type="cite">
<pre wrap="">function init()
{
map = OpenLayers.Map("map");
wms = new OpenLayers.Layer.WMS(
</pre>
</blockquote>
<pre wrap=""><!---->
^^^ Compare these two lines.
(You're missing a 'new' before the Map() call.)
Regards,
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| <a class="moz-txt-link-abbreviated" href="mailto:greg@ergonosis.com">greg@ergonosis.com</a>
| 360.774.6848
|</pre>
</body>
</html>