new KML
Read and write KML version 2.2
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
options |
ol.parser.KMLOptions |
<optional> |
(Optional) Optional configuration object. |
- Source:
- kml.js, line 48
Methods
-
read
-
Parameters:
Name Type Argument Description datastring | Document | Element | Object Data to read.
callbackfunction <optional>
(Optional) Optional callback to call when reading is done. If provided, this method will return undefined.
- Source:
- kml.js, line 957
Returns:
An object representing the document if
opt_callbackwas not provided.- Type
- ol.parser.ReadFeaturesResult | undefined
-
write
-
Parameters:
Name Type Description objObject Object structure to write out as XML.
- Source:
- kml.js, line 1082
Returns:
An string representing the XML document.
- Type
- string