Hi,<br><br>I'm trying to add a Yahoo baselayer to my map so that I may toggle between layers. My code is below. The mapserver layer renders correctly (state of Minnesota in gray), but when I try to toggle to the Yahoo layer, I get something that has a scale and Yahoo info at the bottom of the image, but the whole rest of the image is just gray. Can someone help me figure out how to make these things integrate? The webpage code is below.<br>
<br>Thanks,<br>Matt<br><br>================================================<br><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://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 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>
, units: 'm'<br> , projection: "EPGS:26915"<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 yahoo = new OpenLayers.Layer.Yahoo(<br> "Yahoo"<br> );<br> map.addLayer(yahoo);<br>
<br><br> map.zoomToMaxExtent();<br> map.addControl(new OpenLayers.Control.LayerSwitcher());<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>