On 25 February 2011 02:42, hoi man chan <[email protected]> wrote: > I created a kml file with below codes and the file can be displayed by > google earth but not my webpage. Can you give your important assitance > to me? > By the way, my webpage can display the kml which is generated from a > Excel-to-KML website. > Thanks.
If your webpage can display it, what's the issue? This looks suspect: var mykml = "kml link"; geoXml = new GGeoXml(mykml); That's not a valid link. And GGeoXml requires that the kml file be publicly accessible on an http: url, because it's processed by Google's servers and they need to be able to get at it. If you're using a local file reference, it won't work. Google Earth is a local application and can handle local files. Bear in mind too that the API Terms (9.1) require that your map be public, so there's no point in keeping your kml private. -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
