<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><span>Setting (without trasparency and format)</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="background-color: transparent;"><span>overview_map2 = new OpenLayers.Layer.WMS('Province', "http://"+ wms_hostname +"/cgi-bin/mapserv?map=" + mapfile_path, {'layers': "Province"});<br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><span><br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new
york', times, serif; font-style: normal;"><span>The OverView Control works but the layer inside of it isn't rendered because of this:</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><span style="font-family: 'dejavu sans mono', monospace; font-size: 11px; line-height: 12px; white-space: pre-wrap;">Resource interpreted as Image but transferred with MIME type application/vnd.ogc.se_xml</span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><span style="font-family: 'dejavu sans mono', monospace; font-size: 11px; line-height:
12px; white-space: pre-wrap;"><br></span></span></div><div style="font-family: 'dejavu sans mono', monospace; font-size: 11.199999809265137px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span style="line-height: 12px; white-space: pre-wrap;">Message contained inside MapServer response is:</span></div><div style="font-family: 'dejavu sans mono', monospace; font-size: 11.199999809265137px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span style="line-height: 12px; white-space: pre-wrap;"><br></span></div><div style="background-color: transparent;"><span style="font-size: 11.199999809265137px; line-height: 12px; white-space: pre-wrap;"><font face="dejavu sans mono, monospace">WMS server error. Invalid SRS given : SRS must be valid for all requested layers.</font></span><span style="color: rgb(0, 0, 0); font-family: 'dejavu sans mono', monospace; font-size: 11.199999809265137px; font-style: normal;
line-height: 12px; white-space: pre-wrap;">
</span></div><div><span style="line-height: 12px; white-space: pre-wrap;"><br></span></div><div><span style="line-height: 12px; white-space: pre-wrap;">As I can see usinf debug Openlayers made this GET request</span></div><div><span style="line-height: 12px; white-space: pre-wrap;"><br></span></div><div><span><span style="line-height: 12px; white-space: pre-wrap;">http://myhostname/cgi-bin/mapserv?map=/MapServer/mapfile_calabria_strati.map&LAYERS=Province&SRS=EPSG%3A4326&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fjpeg&BBOX=-20,38,12,70&WIDTH=256&HEIGHT=256</span><br></span></div><div><span style="line-height: 12px; white-space: pre-wrap;"><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>Through this I can see that the requested srs is EPSG:4326 instead of map
projection that is 32633.</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>So, i solved with this</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><code></div><div style="font-family: 'times new roman', 'new york', times, serif;
font-size: 12pt;"><br></div><div style="background-color: transparent;"> var opzioni_overview = {</div><div style="background-color: transparent;"> maxExtent: extend_bounds, </div><div style="background-color: transparent;"> maxResolution: 'auto',</div><div style="background-color: transparent;"> projection: "EPSG:32633"</div><div style="background-color: transparent;"> }; </div><div style="background-color: transparent;"> </div><div style="background-color: transparent;"> overview_map2 = new OpenLayers.Layer.WMS('Province', "http://"+ wms_hostname +"/cgi-bin/mapserv?map=" + mapfile_path, {'layers': "Province"});</div><div style="background-color: transparent;"> </div><div style="background-color:
transparent;"> overviewmap_clone = overview_map2.clone();</div><div style="background-color: transparent;"> </div><div style="background-color: transparent;"> </div><div style="background-color: transparent;"> overview1 = new OpenLayers.Control.OverviewMap({</div><div style="background-color: transparent;"> maximized : true, layers: [overviewmap_clone],</div><div style="background-color: transparent;"> mapOptions: opzioni_overview, </div><div style="background-color: transparent;"> });</div><div style="background-color: transparent;"> </div><div style="background-color: transparent;"> map.addControl(overview1);</div><div><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0);
background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"></code></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">thank you openlayers :)</div> </div></body></html>