ol.format.KML

new KML

Stability: experimental
Parameters:
Name Type Argument Description
options olx.format.KMLOptions <optional>

Options.

Source:
  • kmlformat.js, line 59

Extends

  • ol.format.XMLFeature

Methods

readFeature

Stability: not documented

Read the first feature from a KML source.

Parameters:
Name Type Description
source ArrayBuffer | Document | Node | Object | string

Source.

Source:
  • kmlformat.js, line 1454
Returns:

Feature.

Type
ol.Feature

readFeatures

Stability: not documented

Read all features from a KML source.

Parameters:
Name Type Description
source ArrayBuffer | Document | Node | Object | string

Source.

Source:
  • kmlformat.js, line 1483
Returns:

Features.

Type
Array.<ol.Feature>

readName

Stability: experimental
Parameters:
Name Type Description
source Document | Node | string

Souce.

Source:
  • kmlformat.js, line 1533
Returns:

Name.

Type
string | undefined

readProjection

Stability: not documented

Read the projection from a KML source.

Parameters:
Name Type Description
source ArrayBuffer | Document | Node | Object | string

Source.

Source:
  • kmlformat.js, line 1604
Returns:

Projection.

Type
ol.proj.Projection