Le Wed, 5 Dec 2007 14:55:17 +0000,
"Val Cartei" <[EMAIL PROTECTED]> a écrit :
> Why changing the size of the overview map controller doesn't cause the
> overviewmap to resize itself?
>
> /* set the new width, height */
> var size = {w: newWidth, h:newHeight};
> var options = {size: new OpenLayers.Size(size)};
> /* add new control to the map*/
> map.addControl(new OpenLayers.Control.OverviewMap(options));
>
>
Your size object is incorrect, it should be:
var options = {size: new OpenLayers.Size(newWidth, newHeight)};
map.addControl(new OpenLayers.Control.OverviewMap(options));
see: http://dev.openlayers.org/apidocs/files/OpenLayers/BaseTypes/Size-js.html
Regards,
fredj
--
Frédéric Junod
Camptocamp SA
_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev