PilotGaea 2D O'view
    正在準備搜尋索引...

    類別 Polyline

    Feature format for reading and writing data in the Encoded Polyline Algorithm Format.

    Optional configuration object.

    stable

    層級 (查看層級一覽)

    索引

    方法

    • Encode a list of n-dimensional points and return an encoded string

      Attention: This function will modify the passed array!

      參數

      • numbers: number[]

        A list of n-dimensional points.

      • stride: number

        The number of dimension of the points in the list.

      • 可選opt_factor: number

        The factor by which the numbers will be multiplied. The remaining decimal places will get rounded away. Default is 1e5.

      回傳 string

      The encoded string.

    • Decode a list of n-dimensional points from an encoded string

      參數

      • encoded: string

        An encoded string.

      • stride: number

        The number of dimension of the points in the encoded string.

      • 可選opt_factor: number

        The factor by which the resulting numbers will be divided. Default is 1e5.

      回傳 number[]

      A list of n-dimensional points.

    • Encode a list of floating point numbers and return an encoded string

      Attention: This function will modify the passed array!

      參數

      • numbers: number[]

        A list of floating point numbers.

      • 可選opt_factor: number

        The factor by which the numbers will be multiplied. The remaining decimal places will get rounded away. Default is 1e5.

      回傳 string

      The encoded string.

    • Decode a list of floating point numbers from an encoded string

      參數

      • encoded: string

        An encoded string.

      • 可選opt_factor: number

        The factor by which the result will be divided. Default is 1e5.

      回傳 number[]

      A list of floating point numbers.

    • 函數

      Read the feature from the Polyline source. The coordinates are assumed to be in two dimensions and in latitude, longitude order.

      參數

      • source: string | Object | Document | Node

        Source.

      • 可選opt_options: ReadOptions

        Read options.

      回傳 ol.Feature

      Feature.

      stable

    • 函數

      Read the feature from the source. As Polyline sources contain a single feature, this will return the feature in an array.

      參數

      • source: string | Object | Document | Node

        Source.

      • 可選opt_options: ReadOptions

        Read options.

      回傳 ol.Feature[]

      Features.

      stable

    • 函數

      Read the geometry from the source.

      參數

      • source: string | Object | Document | Node

        Source.

      • 可選opt_options: ReadOptions

        Read options.

      回傳 ol.geom.Geometry

      Geometry.

      stable

    • 函數

      Read the projection from a Polyline source.

      參數

      • source: string | Object | Document | Node

        Source.

      回傳 Projection

      Projection.

      stable

    • 函數

      Write a single geometry in Polyline format.

      參數

      回傳 string

      Geometry.

      stable

    構造函數