Hi All,<br><br>I added the projection from <a href="http://spatialreference.org/ref/user/google-projection/mapfile/">http://spatialreference.org/ref/user/google-projection/mapfile/</a> into my mapfile. I then used the file below. The weird thing is that I am getting a google maps projection, but instead of for Minnesota (which is where my ol_ms layer gets me, I get some region of Europe between Barcelona, Sp and Marseilles, Fr. Any further suggestions?<br>
<br>Thanks,<br>Matt<br><br>=========================================================================<br clear="all"><html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"><br>
<head><br> <title>OpenLayers Example</title><br><!-- <script src="<a href="http://www.openlayers.org/api/OpenLayers.js">http://www.openlayers.org/api/OpenLayers.js</a>"></script> --><br>
<script src="<a href="http://localhost/_common//OpenLayers-2.6/OpenLayers.js">http://localhost/_common//OpenLayers-2.6/OpenLayers.js</a>"></script><br> <script src="<a href="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAytPEybOjkPfSINF9aqMnSRRV_Z48x51l4m6KiJWs2Yue7BruuxS9q420SXqAbRhYk8GzmgwCugf2Fw">http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAytPEybOjkPfSINF9aqMnSRRV_Z48x51l4m6KiJWs2Yue7BruuxS9q420SXqAbRhYk8GzmgwCugf2Fw</a>"<br>
type="text/javascript"></script><br> <script type="text/javascript"><br> var map = null;<br> function init(){<br><br> map = new OpenLayers.Map(<br> 'map',<br>
{<br> maxResolution: 'auto'<br> , maxExtent: new OpenLayers.Bounds(184056.505,4809728.25,767381.245,5478975.75)<br> }<br> );<br><br>
var ol_ms = new OpenLayers.Layer.MapServer(<br> "Mapserver Untiled"<br> , "<a href="http://localhost/cgi-bin/mapserv.exe?map=C:\\ms4w\\Apache\\htdocs\\ol\\map.map">http://localhost/cgi-bin/mapserv.exe?map=C:\\ms4w\\Apache\\htdocs\\ol\\map.map</a>"<br>
, {layers: 'state'}<br> , {singleTile: true}<br> );<br> map.addLayer(ol_ms);<br><br> var gmap = new OpenLayers.Layer.Google(<br> "Google Streets"<br>
, {sphericalMercator: true}<br> );<br> map.addLayer(gmap);<br><br> map.zoomToMaxExtent();<br> map.addControl(new OpenLayers.Control.LayerSwitcher());<br><br> }<br>
</script><br> </head><br><br> <body onload="init()"><br> <div id="map" class="smallmap" style="width:400;height:300"></div><br> </body><br>
<br></html><br>=========================================================================<br clear="all"><br>-- <br>It is from the wellspring of our despair and the places that we are broken that we come to repair the world.<br>
-- Murray Waas