On Apr 22, 8:55 pm, Brian P <[email protected]> wrote:
> OK so it looks like I should be using:
>    GMap2.savePosition()
>    GMap2.returnToSavedPosition()
> and maybe
>    GMap2.checkResize()
>
> But I haven't figured out how to tell when the div changes size (or,
> alternatively, when the document is printed). So far my
> experimentation hasn't fixed it.

The div will only change size if the window changes size (I think: can
you think of another scenario?) so a window.onresize event will catch
that. GEvent.addDomListener might be useful.

Catching when the document is printed is not quite so obvious,
perhaps. What you could do is put a checkResize() call as the last
thing done. With an ordinary webpage, it won't do anything useful;
when rendering for print, it might work.

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to