On Jan 1, 10:43 pm, code322 <[email protected]> wrote:
> On Jan 1, 7:19 pm, "[email protected]" <[email protected]>
> wrote:
>
> > code322 wrote:
> > > A map that is centered on a marker is off-center when placed inside an
> > > overlay div using scriptaculous.
>
> > >http://www.code322.com/popup.php
>
> > Search for "top left corner".   Your issue is that the API can't
> > calculate the correct size for the div when it is hidden (it gets
> > zero).  You need to either call map.checkResize() after the map is
> > displayed or use the optional "size" option in the GMap2 constructor.
>
> >   -- Larry
>
> map.checkResize() did not do it for me, but the size option did.

FYI - The map.checkResize() needs to be executed after the map is
displayed, not after it is created.  Where it is currently, it won't
have any effect, the map is still hidden (and the map div has zero
size).

>
> http://www.code322.com/popupfixed.php
>
> Thanks for your help!

  You are welcome.

  -- Larry
--~--~---------~--~----~------------~-------~--~----~
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