[OpenLayers-Dev] Google layer and div resize: wrong config or bug?

Pierre GIRAUD bluecarto at gmail.com
Tue Feb 5 17:16:20 EST 2008


In your ext layout, you can add a listener to your center panel for
the "bodyresize" event.

In our MapComponent, it something like :
this.on("bodyresize", this.map.updateSize, this.map);

But you can do it differently by setting a listeners property to your Ext.Panel.

Regards,
Pierre



On Feb 5, 2008 11:01 PM, Diego Guidi <diegoguidi at gmail.com> wrote:
> > You can easily test a simple thing. With a single layer in your map,
> > you can try to pan the map just after resizing an ExtJS region. You'll
> > see that the map behavior is weird. The map moves more than expected.
>
> True. This happens, but this could be fixed with a zoomin/zoomout.
> The google "bug" it's not recoverable :(
>
> > In MapFish we combine ExtJS and OL, and we often use layouts.
> > To prevent the issue you expose here, we created a widget that simply
> > calls map.updateSize() and this seems to go pretty well.
> Could you help me?
> How to bind a resize event (like a splitter movement) and call map.getUpdate()?
>



More information about the Dev mailing list