I am creating an example using the google earth browser plugin and API. I am trying to load a kml file using the fetchKml method
function addKmlFromUrl(kmlUrl) {
google.earth.fetchKml(ge, kmlUrl, kmlFinishedLoading);
}
function kmlFinishedLoading(kmlObject)
{
if (kmlObject) {
ge.getFeatures().appendChild(kmlObject);
}
}
I am sucessfully loading the object, but once it is loaded, I want to be able to alter some of the parameters on the fly. I also want to be able to parse throug the points in it and do a few additional things. I looked through the documentation and code samples, but I can't seem to find a way to do this.
Any ideas?