OpenLayers 3 Examples
The "Export KML" functionality requires a browser that supports the
link download
attribute.
Export KML
KML example
Example of using the KML source.
See the
kml.js source
to see how this is done.
KML