AW: [OpenLayers-Users] page resize breaks map?

S2 s2.akira at tin.it
Mon May 30 13:53:04 EDT 2011


Thanks Andy, that's it!

I had a js function resize all images on the page, and that function 
resized the images in the map as well... (I forgot it was there, I feel 
really stupid now).

Thanks for your help!

On 30/05/2011 19:03, Arnd Wippermann wrote:
> Hi,
> It's likely a problem with your picture viewer. It seems, that when you
> scroll down and new posts are loaded, the image tags are resized and an
> event handler is added.
> Change the visibility of your track layer of a broken map. Then you can
> click on a tile like on your other pictures and get the large display.
> Interesting.
> Arnd
>
> -----Ursprüngliche Nachricht-----
> Von: openlayers-users-bounces at lists.osgeo.org
> [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von S2
> Gesendet: Montag, 30. Mai 2011 09:18
> An: openlayers-users at lists.osgeo.org
> Betreff: [OpenLayers-Users] page resize breaks map?
>
> 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
>



More information about the Users mailing list