[OpenLayers-Users] Map not show in Overviewmap

Eric Lemoine eric.lemoine at camptocamp.com
Wed Aug 5 02:13:40 EDT 2009


Hi. Try to give the overview map a clone of aLayer (aLayer.clone()).
Hope this helps,

On Wednesday, August 5, 2009, Mr. Bic Phuong <bicphuongonline at yahoo.com> wrote:
>
> 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!
>
>
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com



More information about the Users mailing list