ol.format.KML

new KML

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

Options.

Properties
Name Type Description
defaultStyle Array.<ol.style.Style> | undefined

Default style. The default default style is the same as Google Earth.

Source:
  • kmlformat.js, line 59

Extends

  • ol.format.XMLFeature

Methods

readFeature

Stability: experimental

Read the first feature from a KML source.

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

Source.

Source:
  • kmlformat.js, line 1455
Returns:

Feature.

Type
ol.Feature

readFeatures

Stability: experimental

Read all features from a KML source.

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

Source.

Source:
  • kmlformat.js, line 1484
Returns:

Features.

Type
Array.<ol.Feature>

readProjection

Stability: experimental

Read the projection from a KML source.

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

Source.

Source:
  • kmlformat.js, line 1602
Returns:

Projection.

Type
ol.proj.Projection