Hi,

Fred Estrela wrote:
> I have the following code.
>
>      var controlOptions = {
>             mapOptions: {
>                 projection: new OpenLayers.Projection("EPSG:900913"),
>                 displayProjection: new OpenLayers.Projection("EPSG:4326"),
>                 units:'dd',
>                 maxResolution: 'auto',
>                 maxExtent: Navegador.getMap().getMaxExtent()},
>                layers: [Navegador.getBaseLayer()],


Try replacing the line above with
               layers: [Navegador.getBaseLayer().clone()],


>                };
>        
>               overview = new
> OpenLayers.Control.OverviewMap(controlOptions);
>            
>             Navegador.addControl(overview);
>


Regards,
Andreas.

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to