Read/Wite KML. Create a new instance with the OpenLayers.Format.KML constructor.
| OpenLayers. Format.KML | Read/Wite KML. |
| Properties | |
| kmlns | {String} KML Namespace to use. |
| placemarksDesc | {String} Name of the placemarks. |
| foldersName | {String} Name of the folders. |
| foldersDesc | {String} Description of the folders. |
| extractAttributes | {Boolean} Extract attributes from KML. |
| maxDepth | {Integer} Maximum depth for recursive loading external KML URLs Defaults to 0: do no external fetching |
| Constructor | |
| OpenLayers. Format.KML | Create a new parser for KML. |
| Functions | |
| read | Read data from a string, and return a list of features. |
| write | Accept Feature Collection, and return a string. |
read: function( data )
Read data from a string, and return a list of features.
| data | {String} or {DOMElement} data to read/parse. |
{Array(OpenLayers.Feature.Vector)} List of features.
write: function( features )
Accept Feature Collection, and return a string.
| features | {Array(OpenLayers.Feature.Vector} An array of features. |
{String} A KML string.
Read data from a string, and return a list of features.
read: function( data )
Accept Feature Collection, and return a string.
write: function( features )