[OpenLayers-Users] Map not show in Overviewmap

Mr. Bic Phuong bicphuongonline at yahoo.com
Wed Aug 5 00:58:03 EDT 2009


Dear OpenLayers members and developers,

I hope you can help me to solve this problem of overviewmap:

This is my map:
________________________________________________
var mainMapOptions = {
            maxExtent: new OpenLayers.Bounds(565954.632,1143573.7,643612.041,1236513.090), 
            maxResolution: 585, 
            projection:"EPSG:4756", 
            units: "m",
            tilesize: new OpenLayers.Size(256,256),
            numZoomLevels: 11,
            controls:[]
   
     };
        map = new OpenLayers.Map(document.getElementById('map'),mainMapOptions);
        var base = new OpenLayers.Layer("Lop nen",{isBaseLayer: true, displayInLayerSwitcher: false});
        map.addLayer(base);
        alayer = new OpenLayers.Layer.WMS("base layer", wms_host1,{layers:'stmstest',format: 'image/png', transparent: true});
__________________________________________

and this is my overviewmap:

__________________________________________
var overviewOptions =
 {
           maxExtent: new OpenLayers.Bounds(565954.632,1143573.7,643612.041,1236513.090),
           restrictedExtent: new OpenLayers.Bounds(565954.632,1143573.7,643612.041,1236513.090),
           maxResolution: 585,
           units: 'm',
           layers: [alayer],
           tilesize: new OpenLayers.Size(256,256),
           projection: "EPSG:4756",
           numZoomLevels: 11};
        var ovv = new OpenLayers.Control.OverviewMap({mapOptions: overviewOptions})
       
 map.addControl(ovv);
__________________________________________

The problem is: no map in overviewmap control.

I read many posts but none of them help me. This link:

http://n2.nabble.com/Problems-with-Overviewmap-td2861501.html#a2861501

is good news but no information for details

Thanks for your attention!




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090804/11e81ead/attachment.html


More information about the Users mailing list