<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;"><code></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">overview_map2 = new OpenLayers.Layer.WMS('Province', "http://"+ wms_hostname +"/cgi-bin/mapserv?map=" + mapfile_path, {'layers': "Province", 'transparent': "true",   'format': "image/png"});</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">    </font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">    </font></div><div style="background-color: transparent;"><font face="times new roman,
 new york, times, serif">overview1 = new OpenLayers.Control.OverviewMap({</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">            maximized: true, layers: [ overview_map2.clone() ],</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">        });</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">    </font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">map.addControl(overview1);</font></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;">it returns "<span style="box-sizing: border-box; color: rgb(255, 0, 0); font-family: 'dejavu sans mono', monospace; font-size: 11px; white-space: pre-wrap;">Uncaught TypeError: Cannot read property 'wrapDateLine' of null</span><span style="background-color: transparent;">" at Map.js:2333.</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;">If I don't specify layers option everything works great but I must avoid this because baselayer is
 too slow.</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;">Someone of us knows this issue ?</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 style="background-color: transparent;"><br></span></div></div></body></html>