I get erratic behavior in Safari 3.2.3. Sometimes the page only shows
a small map of the world in two tiles at the ppoer left.

No Javascript errors, but the HTML needs some work.

Here are some things you might look at:

1. The page has no DOCTYPE description. This should be at the very
start of the document, no whitespace before it.

2. The page has a mixture of HTML and XHTML markup.

3. After you decide which DOCTYPE, run an HTML syntax checker on the
page.

3. To make the "Carregant mapa, esperi si us plau..." message appear,
the page creates a marker, attaches a tooltip to it with this message,
and then shows the tooltip when the page first opens, while waiting
for the KML file to be parsed. But the script doesn't add this marker
as an overlay to the map. Without looking at the Maps API internals, I
don't know if this could cause problems. But you might try overlaying
that marker to the map, to see whether that helps the map consistently
load. If that helps, you could use a different icon for that marker,
perhaps one that is 1px x 1px , or transparent, (& no shadow).

4. The script places two markers on the map, for the start and end of
the trail. As it is now, those two markers are at exactly the same
spot on the map -- you can tell because their shadow is extra dark.
This isn't a problem for the Maps API, but it doesn't help your users.
I imagine this will change as the site is developed further...

5. The KML file has more than 2000 coordinate points for the trail. Be
sure to read the documentation of the parser (EGeoXml) about
optimizing performance with many points.

6. You might try moving the script to the <head> section of the page.

HTH
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to