Chrome does more things at the same time than other browsers (which is
part of the reason that it goes faster) in particular it can start
executing the Javascript before external CSS files have been completely
fetched. For most pages that's not a problem, because the Javascript
doesn't often rely on the CSS.
With Google Maps, if your Javascript reaches a line like
var map = new GMap2(document.getElementById("map"));
at a time when no CSS has been applied to
<div id="map"></div>
then the map will be created as if the map container had zero size.
You might be able to fix this by
Using the {size} option if you know how big the div is going to be
or
Moving the style commands that control the map div size out of an
external .css file and into the main code
or
Moving the code that creates your map into an onload function, so that
the Javascript executes after the page has been rendered.
or
Calling map.checkResize() in an onload function or after a short
setTimeout().
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---