I suggest you add this to the top of the load function:
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById('map'));
map.setCenter(<some point>, <some zoom>) ;
and remove it from the rest of the script. Doing this over and over
again as you have in your script is wasteful of resources as this
causes the map to be reinitialized each time. No need for doing it
more than once. You have the map as a global already, might as well
use it.
-John Coryat
http://maps.huge.info
http://www.usnaviguide.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---