ol.parser. ol.parser.KML

new KML

Parameters:
Name Type Argument Description
options ol.parser.KMLOptions <optional>
(Optional)

Optional configuration object.

Source:
  • kml.js, line 47

Methods

read

Parameters:
Name Type Argument Description
data string | Document | Element | Object

Data to read.

callback function <optional>
(Optional)

Optional callback to call when reading is done. If provided, this method will return undefined.

Source:
  • kml.js, line 961
Returns:

An object representing the document if opt_callback was not provided.

Type
ol.parser.ReadFeaturesResult | undefined

write

Parameters:
Name Type Description
obj Object

Object structure to write out as XML.

Source:
  • kml.js, line 1095
Returns:

An string representing the XML document.

Type
string