Hi everyone, <br>I would use OpenLayers with Google maps, Vector layers and Geoscopio layers.<br>I think I've some trouble with projections.<br>Geoscopio maps are available with projections EPSG:4326 and EPSG:3003.<br>
How can I set all parts to work together? <br><br>If I use "standard" projection for google <br><br>I'm using that code get from various examples, in that way the only layer doesn't work properly is the "Tuscany Map":<br>
<br>...<br>var options = {<br> projection: new OpenLayers.Projection("EPSG:900913"),<br> displayProjection: new OpenLayers.Projection("EPSG:4326"),<br> units: "m",<br>
maxResolution: 156543.0339,<br> maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34,<br> 20037508.34, 20037508.34)<br> };<br>
<br> map = new OpenLayers.Map('map',options);<br> <br> map.addControl(new OpenLayers.Control.LayerSwitcher());<br> <br> var gphy = new OpenLayers.Layer.Google(<br>
"Google Physical",<br> {type: G_PHYSICAL_MAP, sphericalMercator:true}<br> );<br><br> var wms = new OpenLayers.Layer.WMS("Tuscany Map",<br> "<a href="http://web.rete.toscana.it/sgrwms/com.rt.wms.RTmap?servicename=_rt_wms&version=1.1.1&SRS=EPSG:3003" target="_blank">http://web.rete.toscana.it/sgrwms/com.rt.wms.RTmap?servicename=_rt_wms&version=1.1.1&SRS=EPSG:3003</a>",<br>
{<br> projection: map.displayProjection,<br> layers: 'idcomuni',<br> transparent: 'true'<br>
});<br> <br> var layerGML = new OpenLayers.Layer.Vector("Layer Vector", {<br> projection: map.displayProjection,<br> strategies: [new OpenLayers.Strategy.Fixed()],<br>
protocol: new OpenLayers.Protocol.HTTP({<br> url: "markers.kml",<br> format: new OpenLayers.Format.KML({<br> extractStyles: true,<br>
extractAttributes: true<br>
})<br> })<br> });<br> map.addLayers([gmap, ghyb, layerGML]);<br>...<br><br>-- <br>Willy<br>