Is it possible to write and save a KML from OpenLayers? Anyone know of an example of exporting one?
Here's some JQuery action to save:
$('#saveKML').click(function() { var kmlFormat = new OpenLayers.Format.KML(); var newWindow = window.open('', 'KML Export ' + (new Date()).getTime(), "width=300,height=300"); newWindow.document.write('' + kmlFormat.write(features) + ''); });