[OpenLayers-Users] OpenLayers.Control.OverviewMap exception with layers declaration

Giuseppe De Marco peppelinux at yahoo.it
Tue May 28 02:44:53 PDT 2013


<code>

overview_map2 = new OpenLayers.Layer.WMS('Province', "http://"+ wms_hostname +"/cgi-bin/mapserv?map=" + mapfile_path, {'layers': "Province", 'transparent': "true",   'format': "image/png"});
    
    
overview1 = new OpenLayers.Control.OverviewMap({
            maximized: true, layers: [ overview_map2.clone() ],
        });
    
map.addControl(overview1);

</code>

it returns "Uncaught TypeError: Cannot read property 'wrapDateLine' of null" at Map.js:2333.
If I don't specify layers option everything works great but I must avoid this because baselayer is too slow.
Someone of us knows this issue ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130528/82f60705/attachment-0001.html>


More information about the Users mailing list