I quickly look at your code. Apparently you do not specify a height/width for your map container. Perhaps you should try to force these values with something in pixels. It's a nasty solution but you should give it a try to see if it works
Jerome On Mon, May 30, 2011 at 10:19 AM, S2 <[email protected]> wrote: > Hi Jerome, > thanks for taking the time to answer. > I tried > > line 541 of > http://s2.31337.it/ > elm.data('olmap').updateSize(); > > but it seems to have no effect. > > On 30.05.2011 9.52, jrom wrote: >> >> 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<[email protected]> 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 >>> [email protected] >>> http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >> >> >> > > > -- http://jrom.info _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
