<div>I have the following example partially taken from the spherical-mercator.html:<br><br><html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"><br> <head><br> <style type="text/css">
<br> #map {<br> width: 800px;<br> height: 475px;<br> border: 1px solid black;<br> }<br> </style><br> <script src="<a href="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=euzuro-openlayers">
http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=euzuro-openlayers</a>"></script><br> <script src="../lib/OpenLayers.js"></script><br> <script type="text/javascript">
<br> var map, layer;<br><br> function init(){<br><br> var options = {<br> <font style="BACKGROUND-COLOR: #ffff33">projection: "EPSG:26919",</font><br> units: "m",
<br> maxResolution: 156543.0339,<br> maxExtent: new OpenLayers.Bounds(-20037508, -20037508,<br> 20037508, 20037508.34)<br> };<br> map = new
OpenLayers.Map('map', options);<br><br> // create Yahoo layer<br> // create Yahoo layer<br> var yahoosat = new OpenLayers.Layer.Yahoo(<br> "Yahoo Sattelite",
<br> {'type': YAHOO_MAP_SAT, 'sphericalMercator': true}<br> );<br><br> // create WMS layer<br> var wms = new OpenLayers.Layer.WMS(<br> "World Map",
<br> "<a href="http://world.freemap.in/tiles/">http://world.freemap.in/tiles/</a>",<br> {'layers': 'factbook-overlay', 'format':'png'},<br> {
<br> 'reproject': false, 'opacity': 0.4,<br> 'isBaseLayer': false,'wrapDateLine': true<br> }<br> );<br><br>map.addLayers([yahoosat, wms]);
<br>map.addControl(new OpenLayers.Control.LayerSwitcher());<br> map.zoomToMaxExtent() <br> }<br> <br> </script><br> </head><br> <body onload="init()"><br> <div id="map"></div>
<br> </body><br></html><br><br>Notice I changed the projection from EPSG:900913 to EPSG:26919.<br><br>When I view the rendered source I see the following line for the WMS layer.<br><br><IMG class=olTileImage id=OpenLayersDiv106 style="FILTER: alpha(opacity=40); WIDTH: 256px; POSITION: relative; HEIGHT: 256px; alt: OpenLayersDiv106; opacity:
0.4" src="<a href="http://world.freemap.in/tiles/?LAYERS=factbook-overlay&amp;FORMAT=png&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp">
http://world.freemap.in/tiles/?LAYERS=factbook-overlay&amp;FORMAT=png&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp</a>;<font style="BACKGROUND-COLOR: #ffff00">
SRS=EPSG%3A900913</font>&amp;BBOX=-0.3391999900341034,-20037508.000000003,20037508.00000001,0.339199997484684&amp;WIDTH=256&amp;HEIGHT=256" _eventCacheID="OpenLayersDiv106_eventCacheID_107" galleryImg="no" viewRequestID="2">
</div>
<div> </div>
<div>How do i get the projection to change for the WMS layer?</div>
<div> </div>
<div>Thanks,</div>
<div>Linda Rawson<br> </div>