[OpenLayers-Users] Forcing a redraw within google layer

Arnd Wippermann arnd.wippermann at web.de
Mon Jan 26 14:27:35 EST 2009


Hi,

Try map.updateSize, perhaps this solves your problem.

Arnd Wippermann

-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Dave Potts
Gesendet: Montag, 26. Januar 2009 07:11
An: users at openlayers.org
Betreff: [OpenLayers-Users] Forcing a redraw within google layer

I have a program with a google map image within a tabbed display.

Only the first third of the map  gets draw.

If you resize the bnroswer display everything gets drawn correctly.

Its possible to monitor what the google layer is doing via firefox, it
appears to download all of the tiles correctly, but it just stops drawing
them.
 From the way the display is drawn it appears to have only drawn the 3-4
tiles. Scrolling around results in the next tile being loaded in the top
left hand corner.
This seems to be a well known problem in the google world,  ie

http://groups.google.com.bz/group/Google-Maps-API/browse_thread/thread/02710
b15f3d76ec2/67413d33e7fd0e74
http://groups.google.com/group/jquery-en/browse_thread/thread/484d6cd5fd2a64
cd

the suggestion is to call

map.checkResize()

There does'nt seem to be a way of doing this within openlayers.

Calling redraw on the layer does'nt seem to do anything.

The google map handle is correctly burried away within the openlayer
software, so an external call to map.checkResize appears to be impossible.

Any suggestions?  is there a way to force a redraw off the image.

David.




More information about the Users mailing list