Class: KML

KML

experimental new ol.format.KML(opt_options)

Name Type Argument Description
options optional

Options.

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

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

Extends

Methods

experimental readFeature(source){ol.Feature}

Read the first feature from a KML source.

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

Source.

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

Read all features from a KML source.

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

Source.

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

Read the projection from a KML source.

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

Source.