<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Hi everybody,</DIV>
<DIV>I'm new in openlayers and testing some WMS overlays.</DIV>
<DIV> </DIV>
<DIV>I want to overlay a WMS over a google maps or yahoo map basic layer. </DIV>
<DIV>As long i know gm or ym are in sphericalMercator EPSG:900913</DIV>
<DIV>so i set the wms an epsg: 900913</DIV>
<DIV>as you see here:</DIV>
<DIV><A href="http://rips-uis.lubw.baden-wuerttemberg.de/wms/cgi/GDI_SCHUTZGEBIET_NATUR?REQUEST=GetCapabilities&SERVICE=WMS">http://rips-uis.lubw.baden-wuerttemberg.de/wms/cgi/GDI_SCHUTZGEBIET_NATUR?REQUEST=GetCapabilities&SERVICE=WMS</A></DIV>
<DIV> </DIV>
<DIV>in my code are 2 wms layers. one with, one without EPSG:900913</DIV>
<DIV>the one without sends an error message "invalid SRS value" --> of course!</DIV>
<DIV>the one with correct EPSG don't show and no error messages</DIV>
<DIV>what's wrong?</DIV>
<DIV>can anybody help?</DIV>
<DIV> </DIV>
<DIV>map:</DIV>
<DIV><A href="http://rips-uis.lubw.baden-wuerttemberg.de/rips/wms_viewer/openlayer_test/myOpenLayer2.php">http://rips-uis.lubw.baden-wuerttemberg.de/rips/wms_viewer/openlayer_test/myOpenLayer2.php</A></DIV>
<DIV> </DIV>
<DIV>code:</DIV>
<DIV>var map, gmap, layer1, layer2, layer3;<BR>function init(){<BR> var options = {<BR> projection: "EPSG:900913",<BR> units: "m",<BR> maxResolution: 156543.0339,<BR> maxExtent: new OpenLayers.Bounds(-20037508, -20037508,<BR> 20037508, 20037508.34)<BR> };<BR><BR> map = new OpenLayers.Map('map', options);<BR> map.addControl(new OpenLayers.Control.LayerSwitcher({'div':OpenLayers.Util.getElement('layerswitcher')}));<BR> map.addControl(new OpenLayers.Control.MousePosition());</DIV>
<DIV> </DIV>
<DIV><BR> // create Google Mercator layers<BR> var gmap = new OpenLayers.Layer.Google(<BR> "Google Streets",<BR> {type: G_NORMAL_MAP, 'sphericalMercator': true}<BR> );</DIV>
<DIV> </DIV>
<DIV> map.addLayer(gmap);<BR> </DIV>
<DIV> </DIV>
<DIV>//WMS-Layer <BR> layer2 = new OpenLayers.Layer.WMS( "Naturraum", "<A href="http://rips-uis.lubw.baden-wuerttemberg.de/wms/cgi/UIS_0100000006900001">http://rips-uis.lubw.baden-wuerttemberg.de/wms/cgi/UIS_0100000006900001</A>", {layers: '0', transparent:'true'}, { 'isBaseLayer': false, 'opacity': 0.7 } );<BR> layer3 = new OpenLayers.Layer.WMS( "Naturschutz", "<A href="http://rips-uis.lubw.baden-wuerttemberg.de/wms/cgi/GDI_SCHUTZGEBIET_NATUR">http://rips-uis.lubw.baden-wuerttemberg.de/wms/cgi/GDI_SCHUTZGEBIET_NATUR</A>", {layers: '0,1,2,3,4', transparent:'true', 'sphericalMercator': true}, { 'isBaseLayer': false } );<BR> map.addLayers([layer2, layer3]);</DIV>
<DIV> </DIV>
<DIV> map.setCenter(new OpenLayers.LonLat(1015000, 6200000), 8);</DIV></BODY></HTML>