[OpenLayers-Users] Problem using OverviewMap ...

Paul james pauljame at gmail.com
Wed Jun 9 09:39:00 EDT 2010


Hello guys....
My Map:

 map = new OpenLayers.Map('Test', {
         scales:
[30000000,23000000,15000000,10000000,5000000,3000000,1000000,500000,250000,100000],
        resolutions :
[0.09524345064126273,0.0730199788249681,0.047621725320631365,0.031747816880420915,0.015873908440210457,0.009524345064126272,0.0031747816880420914,0.0015873908440210457,0.0007936954220105228,0.00031747816880420905],
        projection: "EPSG:4326",
        tileSize: new OpenLayers.Size(400, 400),
        maxExtent: new OpenLayers.Bounds(-102.2607421875, -46.142578125,
4.7021484375, 13.623046875)
    });


My OverviewMap:

var sgOverviewOpts = {
    units : 'm',
    scales:
[30000000,23000000,15000000,10000000,5000000,3000000,1000000,500000,250000,100000],
    resolutions :
[0.09524345064126273,0.0730199788249681,0.047621725320631365,0.031747816880420915,0.015873908440210457,0.009524345064126272,0.0031747816880420914,0.0015873908440210457,0.0007936954220105228,0.00031747816880420905],
    transparent : true,
    tileSize: new OpenLayers.Size(50, 50),
    projection : "EPSG:4326",
    maxExtent : new OpenLayers.Bounds(-102.2607421875, -46.142578125,
4.7021484375, 13.623046875)
};
    // OverviewMap
    map.addControl(new OpenLayers.Control.OverviewMap({mapOptions:
sgOverviewOpts}));



No image is generated in my OverviewMap, just a Red Marker in the center...
Any Idea?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100609/7391f485/attachment.html


More information about the Users mailing list