[OpenLayers-Dev] change default size of the overview map (Fr?d?ric Junod)

Val Cartei val.cartei at gmail.com
Fri Dec 7 07:53:39 EST 2007


Still not working. Here's the complete code:

 var options = OpenLayers.Util.extend(
{units:'inches',maxExtent:panorama_bounds,minResolution:1.0,maxResolution:
1.0,controls:[]}, this.mapOptions);
 map = new OpenLayers.Map('panoramaImage',options);

/*=IMAGE layer on the Map*/
 var panorama = new OpenLayers.Layer.Image(myImage.name,myImage.src,
panorama_bounds,panorama_size,options);
 map.addLayers([panorama]);

/*=overview map*/
var scroller = document.getElementById("scroller");
scrollerObj=new OpenLayers.Control.OverviewMap({div:scroller,size:new
OpenLayers.Size(100,35)});

Although the div containing the overview map gets resized, the map inside it
doesn't. Can't see why.
Best,
Val
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20071207/c61608f9/attachment.html


More information about the Dev mailing list