[OpenLayers-Dev] dinamic size with ext3.0

Rodolfo Barriga rodolfo.barriga at gmail.com
Mon Nov 30 07:40:13 EST 2009


maybe something like this could help you:

var p = new Ext.Panel({
    region: 'center',
    html: '<div id="map" style="width:100%; height:100%;" />'
});

you can init the OL map in that Div

var map = new OpenLayers.Map('map', options);

then you can update map size with the extjs panel resize event.
(http://www.extjs.com/deploy/dev/docs/?class=Ext.Panel EXTJS Panel API
reference.)

p.on('resize', function() {
           mapObjet.updateSize();
});


Greetings Rodolfo B


2009/11/30 Luca Santaniello <lsantaniello at cidsoftware.it>

>  Hi,
>
> I want resize map automatically but I have a problem. I use ext3. I have
> one panel and I want render my map into this panel to max extent.
>
> Can help me please?
>
> Thanks
>
> Luca
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20091130/bdcca79e/attachment.html


More information about the Dev mailing list