Classdesc

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

Note that the KML format uses the URL() constructor. Older browsers such as IE which do not support this will need a URL polyfill to be loaded before use.

Param: opt_options

Options.

Api

stable

Hierarchy

Constructors

  • Parameters

    Returns ov2D3D.MapClient.ol.format.KML

    Classdesc

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

    Note that the KML format uses the URL() constructor. Older browsers such as IE which do not support this will need a URL polyfill to be loaded before use.

    Api

    stable

Methods

  • Read the first feature from a KML source. MultiGeometries are converted into GeometryCollections if they are a mix of geometry types, and into MultiPoint/ MultiLineString/MultiPolygon if they are all of the same type.

    Parameters

    • source: string | Object | Node | Document

      Source.

    • Optional opt_options: ReadOptions

      Read options.

    Returns ov2D3D.MapClient.ol.Feature

    Feature.

    Function

    Api

    stable

  • Read all features from a KML source. MultiGeometries are converted into GeometryCollections if they are a mix of geometry types, and into MultiPoint/ MultiLineString/MultiPolygon if they are all of the same type.

    Parameters

    • source: string | Object | Node | Document

      Source.

    • Optional opt_options: ReadOptions

      Read options.

    Returns ov2D3D.MapClient.ol.Feature[]

    Features.

    Function

    Api

    stable

  • Read the name of the KML.

    Parameters

    • source: string | Node | Document

      Souce.

    Returns string

    Name.

    Api

    stable

  • Read the network links of the KML.

    Parameters

    • source: string | Node | Document

      Source.

    Returns Object[]

    Network links.

    Api

  • Read the projection from a KML source.

    Parameters

    • source: string | Object | Node | Document

      Source.

    Returns Projection

    Projection.

    Function

    Api

    stable

  • Encode an array of features in the KML format. GeometryCollections, MultiPoints, MultiLineStrings, and MultiPolygons are output as MultiGeometries.

    Parameters

    Returns string

    Result.

    Function

    Api

    stable

  • Encode an array of features in the KML format as an XML node. GeometryCollections, MultiPoints, MultiLineStrings, and MultiPolygons are output as MultiGeometries.

    Parameters

    Returns Node

    Node.

    Api

Generated using TypeDoc