[OpenLayers-Users] page resize breaks map?

jrom jerome.gasperi at gmail.com
Mon May 30 03:52:15 EDT 2011


Hi,

Perhaps you should try a map.updateSize() after content gets loaded.
It will force a map repaint

Jerome

On Mon, May 30, 2011 at 9:17 AM, S2 <s2.akira at tin.it> wrote:
> hello all!
>
> on http://s2.31337.it/ i have some openlayers maps. the page uses ∞ scroll,
> so that when the user scrolls to the bottom of the page, older posts are
> loaded automatically.
> when this happens the map breaks (the pictures in the map get somehow
> resized to a wrong size). you can try this yourself simply by scrolling to
> the bottom of the page, let the js load some more posts, and then scroll
> back up.
>
> can i somehow force the map to repaint itself? (i could do that when new
> content gets loaded).
>
> i tested this with ff4 and ie 8.
>
> thanks.
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



-- 
http://jrom.info


More information about the Users mailing list