<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hola Gery, <br>
    <br>
    That does help and I have been able to narrow the problem down a bit
    more.&nbsp; I think this has to do w/ the fact that I am attempting to
    load a wms layer and there isn't an entry for the item in epsg
    file.&nbsp; I gathered this from the following page<br>
    <br>
    I have now added the epsg for 900913 but I am still having an
    issue.&nbsp; I was able to get an error back from the wms server which
    is:<br>
    <br>
    &lt;?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?&gt;<br>
    &lt;!DOCTYPE ServiceExceptionReport SYSTEM
    <a class="moz-txt-link-rfc2396E" href="http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">"http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"</a>&gt;<br>
    &lt;ServiceExceptionReport version="1.1.1"&gt;<br>
    &lt;ServiceException code="InvalidSRS"&gt;<br>
    msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS
    must be valid for all requested layers.<br>
    &lt;/ServiceException&gt;<br>
    &lt;/ServiceExceptionReport&gt;<br>
    <br>
    <br>
    Thanks, <br>
    Derek<br>
    <br>
    <br>
    <br>
    On 5/24/2012 1:46 PM, Gery . wrote:
    <blockquote cite="mid:DUB111-W1101D550F02DA0360275A18B0000@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
      <div dir="ltr">
        <br>
        Hello,<br>
        <br>
        I think you're right, projection has something to do there, this
        link may help you:
<a class="moz-txt-link-freetext" href="http://blog.sonxurxo.com/2011/04/28/tutorial-de-openlayers-ii-capas-de-google/">http://blog.sonxurxo.com/2011/04/28/tutorial-de-openlayers-ii-capas-de-google/</a><br>
        <br>
        There is a lot of stuff about google maps and openlayers and
        projection, just google them.<br>
        <br>
        Hope this helps,<br>
        <br>
        <br>
        <br>
        <div>&gt; Date: Thu, 24 May 2012 13:37:52 -0400<br>
          &gt; From: <a class="moz-txt-link-abbreviated" href="mailto:jdmorgan@unca.edu">jdmorgan@unca.edu</a><br>
          &gt; To: <a class="moz-txt-link-abbreviated" href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a><br>
          &gt; Subject: [OpenLayers-Users] wms layer over openstreet
          base map<br>
          &gt; <br>
          &gt; Hello,<br>
          &gt; I am trying to get a wms states layer to overlay on a
          base openstreet <br>
          &gt; map. The openstreet map shows up fine but the wms layer
          never does. I <br>
          &gt; am guessing this is a projection issue but can't figure
          out how to <br>
          &gt; resolve it. Any tips would be greatly appreciated. Here
          is my code:<br>
          &gt; <br>
          &gt; &lt;!DOCTYPE HTML&gt;<br>
          &gt; &lt;html&gt;<br>
          &gt; &lt;head&gt;<br>
          &gt; &lt;title&gt;OpenLayers Demo&lt;/title&gt;<br>
          &gt; &lt;style type="text/css"&gt;<br>
          &gt; html, body, #basicMap {<br>
          &gt; width: 100%;<br>
          &gt; height: 100%;<br>
          &gt; margin: 0;<br>
          &gt; }<br>
          &gt; &lt;/style&gt;<br>
          &gt; &lt;script
          src=<a class="moz-txt-link-rfc2396E" href="http://www.openlayers.org/api/OpenLayers.js">"http://www.openlayers.org/api/OpenLayers.js"</a>&gt;&lt;/script&gt;<br>
          &gt; &lt;script&gt;<br>
          &gt; function init() {<br>
          &gt; <br>
          &gt; map = new OpenLayers.Map("basicMap", {projection:
          "EPSG:900913"});<br>
          &gt; var mapnik = new OpenLayers.Layer.OSM();<br>
          &gt; var fromProjection = new
          OpenLayers.Projection("EPSG:4326"); <br>
          &gt; // Transform from WGS 1984<br>
          &gt; var toProjection = new
          OpenLayers.Projection("EPSG:900913"); <br>
          &gt; // to Spherical Mercator Projection<br>
          &gt; var position = new OpenLayers.LonLat(-98.0859375, <br>
          &gt; 39.095962936305476).transform(fromProjection,
          toProjection);<br>
          &gt; var zoom = 5;<br>
          &gt; <br>
          &gt; var stateMap = new OpenLayers.Layer.WMS(<br>
          &gt; 'States',<br>
          &gt; '<a class="moz-txt-link-freetext" href="http://pathToWMSlayer/vlayers">http://pathToWMSlayer/vlayers</a>',<br>
          &gt; {layers: 'states', transparent: true}<br>
          &gt; {<br>
          &gt; isBaseLayer: false,<br>
          &gt; }<br>
          &gt; );<br>
          &gt; <br>
          &gt; map.addLayers([mapnik, stateMap]);<br>
          &gt; map.setCenter(position, zoom);<br>
          &gt; }<br>
          &gt; &lt;/script&gt;<br>
          &gt; &lt;/head&gt;<br>
          &gt; &lt;body onload="init();"&gt;<br>
          &gt; &lt;div id="basicMap"&gt;&lt;/div&gt;<br>
          &gt; &lt;/body&gt;<br>
          &gt; &lt;/html&gt;<br>
          &gt; <br>
          &gt; <br>
          &gt; Thanks ahead of time,<br>
          &gt; Derek<br>
          &gt; _______________________________________________<br>
          &gt; Users mailing list<br>
          &gt; <a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
          &gt; <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Derek @ NEMAC
<a class="moz-txt-link-freetext" href="http://nemac.unca.edu">http://nemac.unca.edu</a></pre>
  </body>
</html>