<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br>Glad to hear that it worked Derek! you're welcome dude, so enjoy it!<br><br>Have a nice weekend, cheers,<br><br>Gery<br><br><div><div id="SkyDrivePlaceholder"></div>&gt; Date: Fri, 25 May 2012 13:30:26 -0400<br>&gt; From: jdmorgan@unca.edu<br>&gt; To: openlayers-users@lists.osgeo.org; gamejihou@hotmail.com<br>&gt; Subject: Re: Users Digest, Vol 68, Issue 51<br>&gt; <br>&gt; Thanks again Gery,<br>&gt; <br>&gt; You definitly pointed me in the right direction.  I am using MapServer <br>&gt; and It was as you suggested necessary for me to add it to the .map in <br>&gt; the wms_srs section.  Once I did that it worked like a champ.<br>&gt; <br>&gt; Cheers,<br>&gt; Derek<br>&gt; <br>&gt; On 5/24/2012 5:25 PM, openlayers-users-request@lists.osgeo.org wrote:<br>&gt; &gt; Send Users mailing list submissions to<br>&gt; &gt;         openlayers-users@lists.osgeo.org<br>&gt; &gt;<br>&gt; &gt; To subscribe or unsubscribe via the World Wide Web, visit<br>&gt; &gt;         http://lists.osgeo.org/mailman/listinfo/openlayers-users<br>&gt; &gt; or, via email, send a message with subject or body 'help' to<br>&gt; &gt;         openlayers-users-request@lists.osgeo.org<br>&gt; &gt;<br>&gt; &gt; You can reach the person managing the list at<br>&gt; &gt;         openlayers-users-owner@lists.osgeo.org<br>&gt; &gt;<br>&gt; &gt; When replying, please edit your Subject line so it is more specific<br>&gt; &gt; than "Re: Contents of Users digest..."<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Today's Topics:<br>&gt; &gt;<br>&gt; &gt;     1. RE: wms layer over openstreet base map (Gery .)<br>&gt; &gt;     2. RE: wms layer over openstreet base map (Gery .)<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ----------------------------------------------------------------------<br>&gt; &gt;<br>&gt; &gt; Message: 1<br>&gt; &gt; Date: Thu, 24 May 2012 21:23:07 +0000<br>&gt; &gt; From: "Gery ."&lt;gamejihou@hotmail.com&gt;<br>&gt; &gt; Subject: RE: [OpenLayers-Users] wms layer over openstreet base map<br>&gt; &gt; To:&lt;jdmorgan@unca.edu&gt;<br>&gt; &gt; Cc: openlayers-users@lists.osgeo.org<br>&gt; &gt; Message-ID:&lt;DUB111-W128D103937DD58D1195BE74B0000@phx.gbl&gt;<br>&gt; &gt; Content-Type: text/plain; charset="iso-8859-1"<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Hola Derek,<br>&gt; &gt;<br>&gt; &gt; That's great!, your error points to the projection (SRS) that it is required and also something called version 1.1.1 that it is normally added in the MAP file when using Mapserver. Are you using Mapserver? if so, you should read this one: http://mapserver.org/ogc/wfs_server.html, these instructions are useful for WFS layers, but WMS is a bit more problematic, try this one also: http://mapserver.org/ogc/wms_server.html. I think with both of them you will start understanding where the problem is, that it is basically adding the "wms_srs" flag (if using Mapserver) and adding the right projections. If your raster is in UTM, you have to play a bit, probably assigning the right UTM SRID (check for getting ideas: http://stackoverflow.com/questions/1541202/how-do-you-know-what-srid-to-use-for-a-shp-file) plus the 4322 as you already did (or as it appears in the WMS web I put above).<br>&gt; &gt;<br>&gt; &gt; Hope this helps!, cheers<br>&gt; &gt;<br>&gt; &gt; Date: Thu, 24 May 2012 17:12:27 -0400<br>&gt; &gt; From: jdmorgan@unca.edu<br>&gt; &gt; To: gamejihou@hotmail.com<br>&gt; &gt; CC: openlayers-users@lists.osgeo.org<br>&gt; &gt; Subject: Re: [OpenLayers-Users] wms layer over openstreet base map<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;      Hola Gery,<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;      That does help and I have been able to narrow the problem down a bit<br>&gt; &gt;      more.  I think this has to do w/ the fact that I am attempting to<br>&gt; &gt;      load a wms layer and there isn't an entry for the item in epsg<br>&gt; &gt;      file.  I gathered this from the following page<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;      I have now added the epsg for 900913 but I am still having an<br>&gt; &gt;      issue.  I was able to get an error back from the wms server which<br>&gt; &gt;      is:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;      &lt;?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?&gt;<br>&gt; &gt;<br>&gt; &gt;      &lt;!DOCTYPE ServiceExceptionReport SYSTEM<br>&gt; &gt;      "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"&gt;<br>&gt; &gt;<br>&gt; &gt;      &lt;ServiceExceptionReport version="1.1.1"&gt;<br>&gt; &gt;<br>&gt; &gt;      &lt;ServiceException code="InvalidSRS"&gt;<br>&gt; &gt;<br>&gt; &gt;      msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS<br>&gt; &gt;      must be valid for all requested layers.<br>&gt; &gt;<br>&gt; &gt;      &lt;/ServiceException&gt;<br>&gt; &gt;<br>&gt; &gt;      &lt;/ServiceExceptionReport&gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;      Thanks,<br>&gt; &gt;<br>&gt; &gt;      Derek<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;      On 5/24/2012 1:46 PM, Gery . wrote:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;          Hello,<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;          I think you're right, projection has something to do there, this<br>&gt; &gt;          link may help you:<br>&gt; &gt; http://blog.sonxurxo.com/2011/04/28/tutorial-de-openlayers-ii-capas-de-google/<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;          There is a lot of stuff about google maps and openlayers and<br>&gt; &gt;          projection, just google them.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;          Hope this helps,<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;          &gt;  Date: Thu, 24 May 2012 13:37:52 -0400<br>&gt; &gt;<br>&gt; &gt;            &gt;  From: jdmorgan@unca.edu<br>&gt; &gt;<br>&gt; &gt;            &gt;  To: openlayers-users@lists.osgeo.org<br>&gt; &gt;<br>&gt; &gt;            &gt;  Subject: [OpenLayers-Users] wms layer over openstreet<br>&gt; &gt;            base map<br>&gt; &gt;<br>&gt; &gt;            &gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  Hello,<br>&gt; &gt;<br>&gt; &gt;            &gt;  I am trying to get a wms states layer to overlay on a<br>&gt; &gt;            base openstreet<br>&gt; &gt;<br>&gt; &gt;            &gt;  map. The openstreet map shows up fine but the wms layer<br>&gt; &gt;            never does. I<br>&gt; &gt;<br>&gt; &gt;            &gt;  am guessing this is a projection issue but can't figure<br>&gt; &gt;            out how to<br>&gt; &gt;<br>&gt; &gt;            &gt;  resolve it. Any tips would be greatly appreciated. Here<br>&gt; &gt;            is my code:<br>&gt; &gt;<br>&gt; &gt;            &gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;!DOCTYPE HTML&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;html&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;head&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;title&gt;OpenLayers Demo&lt;/title&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;style type="text/css"&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  html, body, #basicMap {<br>&gt; &gt;<br>&gt; &gt;            &gt;  width: 100%;<br>&gt; &gt;<br>&gt; &gt;            &gt;  height: 100%;<br>&gt; &gt;<br>&gt; &gt;            &gt;  margin: 0;<br>&gt; &gt;<br>&gt; &gt;            &gt;  }<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;/style&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;script<br>&gt; &gt;            src="http://www.openlayers.org/api/OpenLayers.js"&gt;&lt;/script&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;script&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  function init() {<br>&gt; &gt;<br>&gt; &gt;            &gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  map = new OpenLayers.Map("basicMap", {projection:<br>&gt; &gt;            "EPSG:900913"});<br>&gt; &gt;<br>&gt; &gt;            &gt;  var mapnik = new OpenLayers.Layer.OSM();<br>&gt; &gt;<br>&gt; &gt;            &gt;  var fromProjection = new<br>&gt; &gt;            OpenLayers.Projection("EPSG:4326");<br>&gt; &gt;<br>&gt; &gt;            &gt;  // Transform from WGS 1984<br>&gt; &gt;<br>&gt; &gt;            &gt;  var toProjection = new<br>&gt; &gt;            OpenLayers.Projection("EPSG:900913");<br>&gt; &gt;<br>&gt; &gt;            &gt;  // to Spherical Mercator Projection<br>&gt; &gt;<br>&gt; &gt;            &gt;  var position = new OpenLayers.LonLat(-98.0859375,<br>&gt; &gt;<br>&gt; &gt;            &gt;  39.095962936305476).transform(fromProjection,<br>&gt; &gt;            toProjection);<br>&gt; &gt;<br>&gt; &gt;            &gt;  var zoom = 5;<br>&gt; &gt;<br>&gt; &gt;            &gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  var stateMap = new OpenLayers.Layer.WMS(<br>&gt; &gt;<br>&gt; &gt;            &gt;  'States',<br>&gt; &gt;<br>&gt; &gt;            &gt;  'http://pathToWMSlayer/vlayers',<br>&gt; &gt;<br>&gt; &gt;            &gt;  {layers: 'states', transparent: true}<br>&gt; &gt;<br>&gt; &gt;            &gt;  {<br>&gt; &gt;<br>&gt; &gt;            &gt;  isBaseLayer: false,<br>&gt; &gt;<br>&gt; &gt;            &gt;  }<br>&gt; &gt;<br>&gt; &gt;            &gt;  );<br>&gt; &gt;<br>&gt; &gt;            &gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  map.addLayers([mapnik, stateMap]);<br>&gt; &gt;<br>&gt; &gt;            &gt;  map.setCenter(position, zoom);<br>&gt; &gt;<br>&gt; &gt;            &gt;  }<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;/script&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;/head&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;body onload="init();"&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;div id="basicMap"&gt;&lt;/div&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;/body&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;/html&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  Thanks ahead of time,<br>&gt; &gt;<br>&gt; &gt;            &gt;  Derek<br>&gt; &gt;<br>&gt; &gt;            &gt;  _______________________________________________<br>&gt; &gt;<br>&gt; &gt;            &gt;  Users mailing list<br>&gt; &gt;<br>&gt; &gt;            &gt;  Users@lists.osgeo.org<br>&gt; &gt;<br>&gt; &gt;            &gt;  http://lists.osgeo.org/mailman/listinfo/openlayers-users<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;      --<br>&gt; &gt; Derek @ NEMAC<br>&gt; &gt; http://nemac.unca.edu                                             <br>&gt; &gt; -------------- next part --------------<br>&gt; &gt; An HTML attachment was scrubbed...<br>&gt; &gt; URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120524/b6ea2c84/attachment-0001.html<br>&gt; &gt;<br>&gt; &gt; ------------------------------<br>&gt; &gt;<br>&gt; &gt; Message: 2<br>&gt; &gt; Date: Thu, 24 May 2012 21:24:49 +0000<br>&gt; &gt; From: "Gery ."&lt;gamejihou@hotmail.com&gt;<br>&gt; &gt; Subject: RE: [OpenLayers-Users] wms layer over openstreet base map<br>&gt; &gt; To:&lt;jdmorgan@unca.edu&gt;<br>&gt; &gt; Cc: openlayers-users@lists.osgeo.org<br>&gt; &gt; Message-ID:&lt;DUB111-W18BF30B5956DE2B80645B2B0000@phx.gbl&gt;<br>&gt; &gt; Content-Type: text/plain; charset="iso-8859-1"<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; sorry!, I meant "4326" instead of "4322" =)<br>&gt; &gt;<br>&gt; &gt; From: gamejihou@hotmail.com<br>&gt; &gt; To: jdmorgan@unca.edu<br>&gt; &gt; Subject: RE: [OpenLayers-Users] wms layer over openstreet base map<br>&gt; &gt; Date: Thu, 24 May 2012 21:23:07 +0000<br>&gt; &gt; CC: openlayers-users@lists.osgeo.org<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Hola Derek,<br>&gt; &gt;<br>&gt; &gt; That's great!, your error points to the projection (SRS) that it is required and also something called version 1.1.1 that it is normally added in the MAP file when using Mapserver. Are you using Mapserver? if so, you should read this one: http://mapserver.org/ogc/wfs_server.html, these instructions are useful for WFS layers, but WMS is a bit more problematic, try this one also: http://mapserver.org/ogc/wms_server.html. I think with both of them you will start understanding where the problem is, that it is basically adding the "wms_srs" flag (if using Mapserver) and adding the right projections. If your raster is in UTM, you have to play a bit, probably assigning the right UTM SRID (check for getting ideas: http://stackoverflow.com/questions/1541202/how-do-you-know-what-srid-to-use-for-a-shp-file) plus the 4322 as you already did (or as it appears in the WMS web I put above).<br>&gt; &gt;<br>&gt; &gt; Hope this helps!, cheers<br>&gt; &gt;<br>&gt; &gt; Date: Thu, 24 May 2012 17:12:27 -0400<br>&gt; &gt; From: jdmorgan@unca.edu<br>&gt; &gt; To: gamejihou@hotmail.com<br>&gt; &gt; CC: openlayers-users@lists.osgeo.org<br>&gt; &gt; Subject: Re: [OpenLayers-Users] wms layer over openstreet base map<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;      Hola Gery,<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;      That does help and I have been able to narrow the problem down a bit<br>&gt; &gt;      more.  I think this has to do w/ the fact that I am attempting to<br>&gt; &gt;      load a wms layer and there isn't an entry for the item in epsg<br>&gt; &gt;      file.  I gathered this from the following page<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;      I have now added the epsg for 900913 but I am still having an<br>&gt; &gt;      issue.  I was able to get an error back from the wms server which<br>&gt; &gt;      is:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;      &lt;?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?&gt;<br>&gt; &gt;<br>&gt; &gt;      &lt;!DOCTYPE ServiceExceptionReport SYSTEM<br>&gt; &gt;      "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"&gt;<br>&gt; &gt;<br>&gt; &gt;      &lt;ServiceExceptionReport version="1.1.1"&gt;<br>&gt; &gt;<br>&gt; &gt;      &lt;ServiceException code="InvalidSRS"&gt;<br>&gt; &gt;<br>&gt; &gt;      msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS<br>&gt; &gt;      must be valid for all requested layers.<br>&gt; &gt;<br>&gt; &gt;      &lt;/ServiceException&gt;<br>&gt; &gt;<br>&gt; &gt;      &lt;/ServiceExceptionReport&gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;      Thanks,<br>&gt; &gt;<br>&gt; &gt;      Derek<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;      On 5/24/2012 1:46 PM, Gery . wrote:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;          Hello,<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;          I think you're right, projection has something to do there, this<br>&gt; &gt;          link may help you:<br>&gt; &gt; http://blog.sonxurxo.com/2011/04/28/tutorial-de-openlayers-ii-capas-de-google/<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;          There is a lot of stuff about google maps and openlayers and<br>&gt; &gt;          projection, just google them.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;          Hope this helps,<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;          &gt;  Date: Thu, 24 May 2012 13:37:52 -0400<br>&gt; &gt;<br>&gt; &gt;            &gt;  From: jdmorgan@unca.edu<br>&gt; &gt;<br>&gt; &gt;            &gt;  To: openlayers-users@lists.osgeo.org<br>&gt; &gt;<br>&gt; &gt;            &gt;  Subject: [OpenLayers-Users] wms layer over openstreet<br>&gt; &gt;            base map<br>&gt; &gt;<br>&gt; &gt;            &gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  Hello,<br>&gt; &gt;<br>&gt; &gt;            &gt;  I am trying to get a wms states layer to overlay on a<br>&gt; &gt;            base openstreet<br>&gt; &gt;<br>&gt; &gt;            &gt;  map. The openstreet map shows up fine but the wms layer<br>&gt; &gt;            never does. I<br>&gt; &gt;<br>&gt; &gt;            &gt;  am guessing this is a projection issue but can't figure<br>&gt; &gt;            out how to<br>&gt; &gt;<br>&gt; &gt;            &gt;  resolve it. Any tips would be greatly appreciated. Here<br>&gt; &gt;            is my code:<br>&gt; &gt;<br>&gt; &gt;            &gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;!DOCTYPE HTML&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;html&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;head&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;title&gt;OpenLayers Demo&lt;/title&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;style type="text/css"&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  html, body, #basicMap {<br>&gt; &gt;<br>&gt; &gt;            &gt;  width: 100%;<br>&gt; &gt;<br>&gt; &gt;            &gt;  height: 100%;<br>&gt; &gt;<br>&gt; &gt;            &gt;  margin: 0;<br>&gt; &gt;<br>&gt; &gt;            &gt;  }<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;/style&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;script<br>&gt; &gt;            src="http://www.openlayers.org/api/OpenLayers.js"&gt;&lt;/script&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;script&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  function init() {<br>&gt; &gt;<br>&gt; &gt;            &gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  map = new OpenLayers.Map("basicMap", {projection:<br>&gt; &gt;            "EPSG:900913"});<br>&gt; &gt;<br>&gt; &gt;            &gt;  var mapnik = new OpenLayers.Layer.OSM();<br>&gt; &gt;<br>&gt; &gt;            &gt;  var fromProjection = new<br>&gt; &gt;            OpenLayers.Projection("EPSG:4326");<br>&gt; &gt;<br>&gt; &gt;            &gt;  // Transform from WGS 1984<br>&gt; &gt;<br>&gt; &gt;            &gt;  var toProjection = new<br>&gt; &gt;            OpenLayers.Projection("EPSG:900913");<br>&gt; &gt;<br>&gt; &gt;            &gt;  // to Spherical Mercator Projection<br>&gt; &gt;<br>&gt; &gt;            &gt;  var position = new OpenLayers.LonLat(-98.0859375,<br>&gt; &gt;<br>&gt; &gt;            &gt;  39.095962936305476).transform(fromProjection,<br>&gt; &gt;            toProjection);<br>&gt; &gt;<br>&gt; &gt;            &gt;  var zoom = 5;<br>&gt; &gt;<br>&gt; &gt;            &gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  var stateMap = new OpenLayers.Layer.WMS(<br>&gt; &gt;<br>&gt; &gt;            &gt;  'States',<br>&gt; &gt;<br>&gt; &gt;            &gt;  'http://pathToWMSlayer/vlayers',<br>&gt; &gt;<br>&gt; &gt;            &gt;  {layers: 'states', transparent: true}<br>&gt; &gt;<br>&gt; &gt;            &gt;  {<br>&gt; &gt;<br>&gt; &gt;            &gt;  isBaseLayer: false,<br>&gt; &gt;<br>&gt; &gt;            &gt;  }<br>&gt; &gt;<br>&gt; &gt;            &gt;  );<br>&gt; &gt;<br>&gt; &gt;            &gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  map.addLayers([mapnik, stateMap]);<br>&gt; &gt;<br>&gt; &gt;            &gt;  map.setCenter(position, zoom);<br>&gt; &gt;<br>&gt; &gt;            &gt;  }<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;/script&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;/head&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;body onload="init();"&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;div id="basicMap"&gt;&lt;/div&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;/body&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  &lt;/html&gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;<br>&gt; &gt;<br>&gt; &gt;            &gt;  Thanks ahead of time,<br>&gt; &gt;<br>&gt; &gt;            &gt;  Derek<br>&gt; &gt;<br>&gt; &gt;            &gt;  _______________________________________________<br>&gt; &gt;<br>&gt; &gt;            &gt;  Users mailing list<br>&gt; &gt;<br>&gt; &gt;            &gt;  Users@lists.osgeo.org<br>&gt; &gt;<br>&gt; &gt;            &gt;  http://lists.osgeo.org/mailman/listinfo/openlayers-users<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;      --<br>&gt; &gt; Derek @ NEMAC<br>&gt; &gt; http://nemac.unca.edu                                             <br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Users mailing list<br>&gt; &gt; Users@lists.osgeo.org<br>&gt; &gt; http://lists.osgeo.org/mailman/listinfo/openlayers-users                                             <br>&gt; &gt; -------------- next part --------------<br>&gt; &gt; An HTML attachment was scrubbed...<br>&gt; &gt; URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120524/5eaaf41b/attachment.html<br>&gt; &gt;<br>&gt; &gt; ------------------------------<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Users mailing list<br>&gt; &gt; Users@lists.osgeo.org<br>&gt; &gt; http://lists.osgeo.org/mailman/listinfo/openlayers-users<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; End of Users Digest, Vol 68, Issue 51<br>&gt; &gt; *************************************<br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Derek @ NEMAC<br>&gt; http://nemac.unca.edu<br>&gt; <br></div>                                               </div></body>
</html>