[OpenLayers-Users] Forcing a redraw within google layer

Dave Potts dave.potts at pinan.co.uk
Mon Jan 26 01:11:27 EST 2009


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/02710b15f3d76ec2/67413d33e7fd0e74
http://groups.google.com/group/jquery-en/browse_thread/thread/484d6cd5fd2a64cd

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dave_potts.vcf
Type: text/x-vcard
Size: 85 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090126/e6f389aa/dave_potts.vcf


More information about the Users mailing list