On Sep 16, 7:32 pm, Kenn <[email protected]> wrote: > Hi, > > I have an issue regarding the map not centering when the div container > of the iframe is initially set to none. > > <div id="map" style="display:none;"> > <iframe ....</iframe> > </div> > > when changing the style to block, the marker is not centered on map. > > this is the link.. > > http://lcmchurches01.cimarketing.biz/about/contact# > > click on the "View Map and Directions »" under Holy Trinity Mowbray so > that the div will be visible. > the marker will be located at the top left position.
Did you try searching the group for "top left"? The browser is reporting zero size for the div when the map is initialized. There are 2 options to fix it. 1. call the GMap2.checkResize() method after the div is displayed 2. use the size option in the GMap2 options argument to tell the API the correct size. -- Larry > > Thanks, > Kenn -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
