Hello, I'm using a simple Yahoo pipe, to take geographically-referenced entries from a Google Calendar & plot it onto a Google Map.
About 50% of the time, the markers aren't rendered - only the map shows. I'm a newbie at this, so whilst I suspect that the kml file from Pipes isn't loading in time, I'm not sure how to script it so addOverlay doesn't execute until the kml file is fully loaded. (Or how to serve a cached version of the KML file as a backup, as suggested in one of the older posts) Any help much appreciated. Thanks, Matt. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>mysite</title> <script src="http://maps.google.com/maps? file=api&v=2&sensor=true&key=ABQIAAAAUbU7zOv9dqVATHgKoE0GLBR- i6HDkcU6Gjwn0BGJNg8EEvtc0RRflqk9SkBDvxPkpEUfWA2mL8h8Fw&hl=en_GB" type="text/javascript"></script> <script type="text/javascript"> var map; var geoXml; function load() { map = new GMap2(document.getElementById("map")); geoXml = new GGeoXml('http://pipes.yahoo.com/pipes/pipe.run? _id=38a3b6cc9a8318e3120c643b46e1ed75&_render=kml&gCalXml=http%3A%2F %2Fwww.google.com%2Fcalendar%2Ffeeds%2F9oc3cddaduvv7jr4m9i2r6p08o %2540group.calendar.google.com%2Fpublic%2Fbasic'); map.setCenter(new GLatLng(55,-4), 5); map.addControl(new GLargeMapControl()); map.addOverlay(geoXml); } </script> </head> <body onload='load()' onunload='GUnload()'> <div id="container"> <div id="map"> </div> </div> <!--EndOfContainer--> </body> </html> ody> </html> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
