On Dec 19, 4:10 pm, Jake <[email protected]> wrote:
> http://www.jacobkking.com/demos/mapsAPI/
If you have a look at the overview map, the blue rectangle in the
middle of it represents the main map area. It's tiny. In fact the API
thinks the main map has a size of 0x0 pixels, so it's centred on the
top-left-hand corner.
Resizing the window will cause the API to recalculate the map: "Ooh!
the div has changed size and it's now 600x400" or whatever.
Either specify a {size} option when you create your map so the API
knows the size the map will end up at when it's created, or include a
map.checkResize() when it's made visible.
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
-~----------~----~----~----~------~----~------~--~---