Class: KML

KML

Feature format for reading and writing data in the KML format.

new ol.format.KML(opt_options) experimental

Name Type Description
options optional

Options.

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

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

Extends

Methods

readFeature(source){ol.Feature} experimental

Read the first feature from a KML source.

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

Source.

Returns:
Feature.

readFeatures(source){Array.<ol.Feature>} experimental

Read all features from a KML source.

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

Source.

Returns:
Features.

readProjection(source){ol.proj.Projection} experimental

Read the projection from a KML source.

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

Source.

Returns:
Projection.