[OpenLayers-Users] size of overview map

Erik Uzureau euzuro at gmail.com
Thu Jan 11 12:11:37 EST 2007


When you initialize a control, you can pass it a parameter called "options"

if you specify a "size" value (or any other) in the options parameter, it will
overwrite the value statically defined in the class definition.

so:

var options = {
    'size': new OpenLayers.Size(50,50)
};
var oMap = new OpenLayers.Control.OverviewMap(options);

should do it.

hope that helps,
erik


On 1/11/07, Bart van den Eijnden (OSGIS) <bartvde at osgis.nl> wrote:
> Hi list,
>
> is there another way to change the size of the overviewmap with 2.3RC1 then
> change the size in the js file
>
> size: new OpenLayers.Size(174, 204)
>
> ?
>
> Best regards,
> Bart
>
> --
> Bart van den Eijnden
> OSGIS, Open Source GIS
> http://www.osgis.nl
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list