[OpenLayers-Dev] Problem with overviewMap

Sébastien Roch roch.sebastien at gmail.com
Mon Aug 27 04:37:36 EDT 2007


Hello users,

Does anybody have problems with the overview map ? I don't succeed in
using an image as a layer for the overview. My code :

var ovLayer = new OpenLayers.Layer.Image( "Swissmap",
"/images/keymap/swissKeymap.png", new
OpenLayers.Bounds(484250,63254,837789,299902), new
OpenLayers.Size(200,140), {projection : "EPSG:21781",units : "m"});

ovOptions = {div : $("keymap"), layers:[ovLayer]};
map.addControl( new OpenLayers.Control.OverviewMap(ovOptions) );

I followed what is suggested on this page :
http://trac.openlayers.org/wiki/Control/OverviewMap

When I inspect the page with firebug, no image (<img>) appears at all
in the keymap div, nor does a div have a background with an image url
or something like that. You can see this here :
http://dev.gastro.swissgeo.ch/

Any idea ?

Sebastien



More information about the Dev mailing list