On Jul 28, 2:46 am, Marc Lacoursière <[email protected]> wrote:
> Sorry, I meant a KML file.
Actually there is a brand new GPolyline.getKml() method that makes it
really simple. It is not documented and it doesn't work with v=2 but
v=2.x at the moment. It takes a callback function as its single
parameter.
Make a <textarea id="kmlfield">
function listKml(kml){
document.getElementById("kmlfield").value = kml;
}
polyline.getKml(listKml);
Don't try to put the output to a <div> with innerHTML. Browsers go
nuts about those kml tags. That is why I recommend <textarea> and
its .value property.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---