<!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">
Hi,<br>
<br>
Thanks to both of you for your suggestions.&nbsp; Setting transparent: true
did the trick.<br>
<br>
Is there some kind of comprehensive documentation that explains all of
this?&nbsp; I hate to clog the list with all these newbie questions.<br>
<br>
Thanks!<br>
<br>
Greg<br>
<br>
Christopher Schmidt wrote:
<blockquote cite="mid:20080815111223.GB25211@metacarta.com" type="cite">
  <pre wrap="">On Fri, Aug 15, 2008 at 08:26:19AM +0300, Lehtonen, Mika wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi Greg,
I believe you need to add layers with:

map.addLayers([stationsLayer,wms]);

instead of separate addLayer, though I am not sure if this is the thing 
preventing both layers to appear.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
These two actually work exactly the same, so that's not it.

  </pre>
  <blockquote type="cite">
    <pre wrap="">Greg Ederer kirjoitti:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Oh, and here's my code:

  wms = new OpenLayers.Layer.WMS(
    "esv:countries - Tiled", <a class="moz-txt-link-rfc2396E" href="http://localhost:8080/geoserver/wms">"http://localhost:8080/geoserver/wms"</a>,
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->&lt;Snip&gt;

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap=""> 
  map.addLayer(stationsLayer);
 
  map.addLayer(wms);

      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
Neither of your layers is an 'overlay'/non baseLayer.

You should set 'transparent': true on one layer's parameters (3rd hash)
or 'isBaseLayer': false to one layer's options (fourth hash).

Either of these should make the layer an 'overlay'.

Only one base layer should be visible on a map at once. 

Adding a Control.LayerSwitcher would allow you to switch between them.

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>