On Jul 7, 9:06 pm, syd636 <[email protected]> wrote:
> Hi Ross -- am really trying to figure this one out so bear with me.
> You suggested: "This is I think because the map lives in a div
> of indeterminate size inside a table." -- I thought the div was
> assigned a size : <div id="map" style="WIDTH: 420px; HEIGHT: 325px"></
> div>
>
> ?? what am I missing?
>
> I found this post from Andrew on the search you led me on. Sure
> sounds like my problem, but since I don't understand the div/size
> piece I'm still
> stumbling...http://groups.google.com/group/Google-Maps-API/browse_thread/thread/6...
Even though you have defined a size for the map, IE only uses it when
it is finally rendering the table. That happens when it reaches </
table> -- and if you have anything before then which needs to know
what size that map div is, it will be told it's zero.
Consequently when the API is deciding which tiles it needs to cover
your div and an overflow margin around the edge, it asks the browser
"How big is this div?" and gets told "zero by zero pixels", so it
assumes an infinitesimally small map. That means that all you *see* is
the overflow tiles around the edge and everything useful is crammed
into that zero-size space in the top-left corner.
One way round this is to use the {size:} option when you create your
GMap2 object -- because that means the API doesn't need to ask the
browser how big the div is, you have already told it yourself. The
better way is to organise your code differently.
Andrew [the same 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
-~----------~----~----~----~------~----~------~--~---