geopf-extensions-openlayers
    Preparing search index...

    Class KML

    Hierarchy

    • KML
      • KML
    Index
    • Parameters

      • options: { extensions?: any }

        Options

        • Optionalextensions?: any

          Add properties to file root

      Returns KML

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

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

    writeStyles_: boolean
    • 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, { [x: string]: any }>[]

        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: WriteOptions | ReadOptions | undefined

        Options.

      Returns WriteOptions | ReadOptions | undefined

      Updated options.

    • Protected

      Adds the data projection to the read options.

      Parameters

      • source: any

        Source.

      • Optionaloptions: ReadOptions

        Options.

      Returns ReadOptions | undefined

      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, { [x: string]: any }> | null

      Feature.

    • Parameters

      • doc: Document

        Document.

      • Optionaloptions: ReadOptions

        Options.

      Returns Feature<Geometry, { [x: string]: any }> | null

      Feature.

    • Parameters

      • node: Element

        Node.

      • Optionaloptions: ReadOptions

        Options.

      Returns Feature<Geometry, { [x: string]: any }> | null

      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, { [x: string]: any }>[]

      Features.

      olKML#readFeatures

    • Protected

      Parameters

      • doc: Document

        Document.

      • Optionaloptions: ReadOptions

        Options.

      Returns Feature<Geometry, { [x: string]: any }>[]

      Features.

    • Protected

      Parameters

      • node: Element

        Node.

      • Optionaloptions: ReadOptions

        Options.

      Returns Feature<Geometry, { [x: string]: any }>[]

      Features.

    • Read a single geometry from a source.

      Parameters

      • source: any

        Source.

      • Optionaloptions: ReadOptions

        Read options.

      Returns Geometry | null

      Geometry.

    • Protected

      Parameters

      • doc: Document

        Document.

      • Optionaloptions: ReadOptions

        Options.

      Returns Geometry | null

      Geometry.

    • Protected

      Parameters

      • node: Element

        Node.

      • Optionaloptions: ReadOptions

        Options.

      Returns Geometry | null

      Geometry.

    • Read the name of the KML.

      Parameters

      • source: string | Document | Element

        Source.

      Returns string | undefined

      Name.

    • Parameters

      • doc: Document

        Document.

      Returns string | undefined

      Name.

    • Parameters

      • node: Element

        Node.

      Returns string | undefined

      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 a source.

      Parameters

      • source: any

        Source.

      Returns Projection | undefined

      Projection.

    • Protected

      Parameters

      • doc: Document

        Document.

      Returns Projection | undefined

      Projection.

    • Protected

      Parameters

      • node: Element

        Node.

      Returns Projection | undefined

      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, { [x: string]: any }>

        Feature.

      • Optionaloptions: WriteOptions

        Write options.

      Returns string

      Encoded feature.

    • Protected

      Parameters

      • feature: Feature<Geometry, { [x: string]: any }>

        Feature.

      • Optionaloptions: WriteOptions

        Options.

      Returns Node | null

      Node.

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

      Parameters

      • features: Feature<Geometry, { [x: string]: any }>[]

        Features.

      • options: any

        Options.

      Returns string

      kml string formatted

      olKML#writeFeatures

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

      Parameters

      • features: Feature<Geometry, { [x: string]: any }>[]

        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 | null

      Node.