<div dir="ltr"><div><div><div><div>Hi,<br><br></div>Im trying to refresh or redraw the OpenLayers.map (or some of its layers) that is contained inside a Ext.Window withtout succes.<br><br></div>I thought that calling the OpenLayers.layer.redraw() would do the job but no.<br>
<br></div>what is the proper way to do that?<br><br></div><div>This is how I use geoExt to generate the map:<br><br>var mapWindow = new Ext.Window({<br> title: "Map: Test",<br> x: 500,<br> y: 85,<br>
height: 500,<br> width: 500,<br> layout: "fit",<br> collapsible: true,<br> closable: false,<br> bodyBorder: false,<br> shadowOffset: 6,<br>
items: [{<br> xtype: "gx_mappanel",<br> map: map,<br> center: new OpenLayers.LonLat(0,0),<br> zoom: 0,<br> tbar: toolbarItems<br>
}]<br> }).show();<br></div><div><br></div>Thank you<br><br>Max Demars<br clear="all"><div><div><div><div><div><div><br>-- <br><div dir="ltr"><div><div><div>Stack Overflow: <a href="http://stackoverflow.com/users/1914034/burton449" target="_blank">http://stackoverflow.com/users/1914034/burton449</a><br>
</div></div>GIS Overflow: <a href="http://gis.stackexchange.com/users/14426/burton449" target="_blank">http://gis.stackexchange.com/users/14426/burton449</a><br></div>LastFm: <a href="http://www.lastfm.fr/user/burton449" target="_blank">http://www.lastfm.fr/user/burton449</a><br>
</div>
</div></div></div></div></div></div></div>