Hi everybody,<br><br>I'm trying to create a map using some aerial content (like VirtualEarth layer, worldWind or any WMS layers) and put OpenStreetMaps on top.<br clear="all">My code is:<br><br> map = new OpenLayers.Map( 'map',<br>
{<br> maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90),<br> numZoomLevels: 16,<br> units: "degrees",<br> projection: new OpenLayers.Projection("EPSG:4326"),<br>
displayProjection: new OpenLayers.Projection("EPSG:4326")<br> });<br> <br> aerial = new OpenLayers.Layer.VirtualEarth("Aerial", {<br> type: VEMapStyle.Aerial<br>
});<br> aerial.setIsBaseLayer(true);<br><br> sclayer = new OpenLayers.Layer.OSM("OSM",<br> "<a href="http://tile.openstreetmap.org/">http://tile.openstreetmap.org/</a>", {});<br>
sclayer.setOpacity(0.5);<br> sclayer.setIsBaseLayer(false);<br><br> map.addLayer(aerial);<br> map.addLayer(sclayer);<br><br><br>The problem is my OSM layer appears disabled. I can avoid this using put in the VE layer 'sphericalMercator: true' but seems the tiles positions isn't the same between the layers.<br>
<br>Any help will be appreciated.<br><br><br>-- <br>|-----------------------------------------------------------<br>| <a href="http://www.astracanada.net">http://www.astracanada.net</a><br>| <a href="http://acuriousanimal.orggeo.net">http://acuriousanimal.orggeo.net</a><br>
|-----------------------------------------------------------<br>| <a href="http://acuriousanimal.blogspot.com">http://acuriousanimal.blogspot.com</a><br>| <a href="http://theballoonproject.blogspot.com">http://theballoonproject.blogspot.com</a><br>
|-----------------------------------------------------------<br>| _ __ <br>| /_| ( _ _/'_ _ <br>|( |. __)(//)//(/(/() <br>| _/ <br>|-----------------------------------------------------------<br>