[OpenLayers-Users] Overview problem on google layer
Andreas Hocevar
ahocevar at opengeo.org
Thu Oct 8 05:51:11 EDT 2009
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.
More information about the Users
mailing list