Hierarchy

  • KML
    • KML

Constructors

  • Parameters

    • options: { extensions?: any }

      Options

      • Optionalextensions?: any

        Add properties to file root

    Returns KML

Properties

crossOrigin_: null | string
dataProjection: undefined | Projection
defaultFeatureProjection: undefined | Projection
extensions: any
featureClass: typeof Feature
iconUrlFunction_: IconUrlFunction
source: null | Document | Node | HTMLElement
supportedMediaTypes: string[]

A list media types supported by the format in descending order of preference.

writeStyles_: boolean

Methods

  • Fonction de lecture du KML avec fonction de traitement en fonction du type PlaceMark (Label ou Marker). Les traitements sont de 2 types :

    • creation de styles étendus ou correctifs sur le KML
    • ajout de styles étendus sur les features

    Parameters

    • kmlNode: HTMLElement

      kml nodes

    • features: Feature<Geometry>[]

      features

    • process: any

      process

    Returns void

    // ajoute des fonctionnalités dans le KML
    _processKml(kmlDoc, {
    labelStyle : createStyleLabel,
    iconStyle : createStyleIcon
    });

    // lit des fonctionnalités du KML non impl. par OpenLayers
    _processKml(kmlNode, {
    labelStyle : getStyleToFeatureLabel,
    iconStyle : getStyleToFeatureIcon,
    extendedData : getExtendedData
    });
  • ...

    Parameters

    • kmlNode: any

      ...

    • extensions: any

      ...

    Returns void

  • Protected

    Sets the dataProjection on the options, if no dataProjection is set.

    Parameters

    • options: undefined | WriteOptions | ReadOptions

      Options.

    Returns undefined | WriteOptions | ReadOptions

    Updated options.

  • Protected

    Adds the data projection to the read options.

    Parameters

    • source: any

      Source.

    • Optionaloptions: ReadOptions

      Options.

    Returns undefined | ReadOptions

    Options.

  • Returns Type

    The format type.

  • Read the cameras of the KML.

    Parameters

    • source: string | Document | Element

      Source.

    Returns {
        Altitude?: number;
        AltitudeMode?: string;
        Heading?: number;
        Latitude?: number;
        Longitude?: number;
        Roll?: number;
        Tilt?: number;
    }[]

    Cameras.

    • OptionalAltitude?: number

      Altitude of the camera.

    • OptionalAltitudeMode?: string

      Floor-related altitude mode.

    • OptionalHeading?: number

      Horizontal camera rotation.

    • OptionalLatitude?: number

      Latitude of the camera.

    • OptionalLongitude?: number

      Longitude of the camera.

    • OptionalRoll?: number

      Vertical camera rotation.

    • OptionalTilt?: number

      Lateral camera rotation.

  • Parameters

    • doc: Document

      Document.

    Returns {
        Altitude?: number;
        AltitudeMode?: string;
        Heading?: number;
        Latitude?: number;
        Longitude?: number;
        Roll?: number;
        Tilt?: number;
    }[]

    Cameras.

    • OptionalAltitude?: number

      Altitude of the camera.

    • OptionalAltitudeMode?: string

      Floor-related altitude mode.

    • OptionalHeading?: number

      Horizontal camera rotation.

    • OptionalLatitude?: number

      Latitude of the camera.

    • OptionalLongitude?: number

      Longitude of the camera.

    • OptionalRoll?: number

      Vertical camera rotation.

    • OptionalTilt?: number

      Lateral camera rotation.

  • Parameters

    • node: Element

      Node.

    Returns {
        Altitude?: number;
        AltitudeMode?: string;
        Heading?: number;
        Latitude?: number;
        Longitude?: number;
        Roll?: number;
        Tilt?: number;
    }[]

    Cameras.

    • OptionalAltitude?: number

      Altitude of the camera.

    • OptionalAltitudeMode?: string

      Floor-related altitude mode.

    • OptionalHeading?: number

      Horizontal camera rotation.

    • OptionalLatitude?: number

      Latitude of the camera.

    • OptionalLongitude?: number

      Longitude of the camera.

    • OptionalRoll?: number

      Vertical camera rotation.

    • OptionalTilt?: number

      Lateral camera rotation.

  • Read a single feature.

    Parameters

    • source: any

      Source.

    • Optionaloptions: ReadOptions

      Read options.

    Returns Feature<Geometry>

    Feature.

  • Parameters

    • doc: Document

      Document.

    • Optionaloptions: ReadOptions

      Options.

    Returns Feature<Geometry>

    Feature.

  • Parameters

    • node: Element

      Node.

    • Optionaloptions: ReadOptions

      Options.

    Returns Feature<Geometry>

    Feature.

  • Read Extend for Features. This function overloads ol.format.KML.readFeatures ...

    Parameters

    • source: Document | Node

      Source.

    • options: any

      options. see olx.format.ReadOptions

    Returns Feature<Geometry>[]

    Features.

    olKML#readFeatures

  • Protected

    Parameters

    • doc: Document

      Document.

    • Optionaloptions: ReadOptions

      Options.

    Returns Feature<Geometry>[]

    Features.

  • Protected

    Parameters

    • node: Element

      Node.

    • Optionaloptions: ReadOptions

      Options.

    Returns Feature<Geometry>[]

    Features.

  • Read a single geometry from a source.

    Parameters

    • source: any

      Source.

    • Optionaloptions: ReadOptions

      Read options.

    Returns Geometry

    Geometry.

  • Protected

    Parameters

    • doc: Document

      Document.

    • Optionaloptions: ReadOptions

      Options.

    Returns Geometry

    Geometry.

  • Protected

    Parameters

    • node: Element

      Node.

    • Optionaloptions: ReadOptions

      Options.

    Returns Geometry

    Geometry.

  • Read the name of the KML.

    Parameters

    • source: string | Document | Element

      Source.

    Returns undefined | string

    Name.

  • Parameters

    • doc: Document

      Document.

    Returns undefined | string

    Name.

  • Parameters

    • node: Element

      Node.

    Returns undefined | string

    Name.

  • Read the network links of the KML.

    Parameters

    • source: string | Document | Element

      Source.

    Returns any[]

    Network links.

  • Parameters

    • doc: Document

      Document.

    Returns any[]

    Network links.

  • Parameters

    • node: Element

      Node.

    Returns any[]

    Network links.

  • Read the projection from the source.

    Parameters

    • source: any

      Source.

    Returns Projection

    Projection.

  • Protected

    Parameters

    • doc: Document

      Document.

    Returns Projection

    Projection.

  • Protected

    Parameters

    • node: Element

      Node.

    Returns Projection

    Projection.

  • Read the regions of the KML.

    Parameters

    • source: string | Document | Element

      Source.

    Returns any[]

    Regions.

  • Parameters

    • doc: Document

      Document.

    Returns any[]

    Region.

  • Parameters

    • node: Element

      Node.

    Returns any[]

    Region.

  • Encode a feature as string.

    Parameters

    • feature: Feature<Geometry>

      Feature.

    • Optionaloptions: WriteOptions

      Write options.

    Returns string

    Encoded feature.

  • Protected

    Parameters

    • feature: Feature<Geometry>

      Feature.

    • Optionaloptions: WriteOptions

      Options.

    Returns Node

    Node.

  • Write Extend for Features. This function overloads ol.format.KML.writeFeatures ...

    Parameters

    • features: Feature<Geometry>[]

      Features.

    • options: any

      Options.

    Returns string

    kml string formatted

    olKML#writeFeatures

  • Parameters

    • features: Feature<Geometry>[]

      Features.

    • Optionaloptions: WriteOptions

      Options.

    Returns Node

    Node.

  • Encode a geometry as string.

    Parameters

    • geometry: Geometry

      Geometry.

    • Optionaloptions: WriteOptions

      Write options.

    Returns string

    Encoded geometry.

  • Parameters

    • geometry: Geometry

      Geometry.

    • Optionaloptions: WriteOptions

      Options.

    Returns Node

    Node.