Hi,
Thanks to both of you for your suggestions. Setting transparent: true
did the trick.
Is there some kind of comprehensive documentation that explains all of
this? I hate to clog the list with all these newbie questions.
Thanks!
Greg
Christopher Schmidt wrote:
On Fri, Aug 15, 2008 at 08:26:19AM +0300, Lehtonen, Mika wrote:
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.
These two actually work exactly the same, so that's not it.
Greg Ederer kirjoitti:
Oh, and here's my code:
wms = new OpenLayers.Layer.WMS(
"esv:countries - Tiled", "http://localhost:8080/geoserver/wms",
<Snip>
map.addLayer(stationsLayer);
map.addLayer(wms);
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,
--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| [EMAIL PROTECTED]
| 360.774.6848
|
|
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users