Hi there,
I am planning to use the fetchKML api from google earth to modify kml
on the fly, but to display the kml in Google Map API. Meaning I am
calling the Google Map API to display the kml, but before displaying
i would edit the kml using fetchKML before parsing to Google Map. Any
suggestion on that?
the codes of editing color shows below:
function checkColor(feature)
{
for (var z=0; z<XRed.length;z++ )
{
y = XRed[z];
feature.item(y).setStyleUrl("#red");
}
for (var z=0; z<XGreen.length;z++ )
{
y = XGreen[z];
feature.item(y).setStyleUrl("#green");
}
for (var z=0; z<XAmber.length;z++ )
{
y = XAmber[z];
feature.item(y).setStyleUrl("#amber");
}
}
feature is the argument parsed from kmlObject.getFeatures
().getChildNodes();
Thanks!
--
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.