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

    Linestring geometry.

    Coordinates.

    Layout.

    stable

    層級 (查看層級一覽)

    索引

    方法

    • Removes an event listener using the key returned by on() or once().

      參數

      • key: Object | Object[]

        The key returned by on() or once() (or an array of keys).

      回傳 void

      stable

    • Append the passed coordinate to the coordinates of the linestring.

      參數

      回傳 void

      stable

    • Make a complete copy of the geometry.

      回傳 LineString

      Clone.

      stable

    • Iterate over each segment, calling the provided callback. If the callback returns a truthy value the function returns that value immediately. Otherwise the function returns false.

      類型參數

      • T
      • S

      參數

      • callback: () => T

        Function called for each segment.

      • 可選opt_this: S

        The object to be used as the value of 'this' within callback.

      回傳 boolean | T

      Value.

    • Returns the coordinate at m using linear interpolation, or null if no such coordinate exists.

      opt_extrapolate controls extrapolation beyond the range of Ms in the MultiLineString. If opt_extrapolate is true then Ms less than the first M will return the first coordinate and Ms greater than the last M will return the last coordinate.

      參數

      • m: number

        M.

      • 可選opt_extrapolate: boolean

        Extrapolate. Default is false.

      回傳 Coordinate

      Coordinate.

      stable

    • Return the coordinates of the linestring.

      回傳 Coordinate[]

      Coordinates.

      stable

    • Return the coordinate at the provided fraction along the linestring. The fraction is a number between 0 and 1, where 0 is the start of the linestring and 1 is the end.

      參數

      • fraction: number

        Fraction.

      • 可選opt_dest: Coordinate

        Optional coordinate whose values will be modified. If not provided, a new coordinate will be returned.

      回傳 Coordinate

      Coordinate of the interpolated point.

    • Return the length of the linestring on projected plane.

      回傳 number

      Length (on projected plane).

      stable

    • 參數

      回傳 boolean

      stable

    • Set the coordinates of the linestring.

      參數

      回傳 void

      stable

    • 參數

      • deltaX: number
      • deltaY: number

      回傳 void

      stable

    • Returns true if this geometry includes the specified coordinate. If the coordinate is on the boundary of the geometry, returns false.

      參數

      回傳 boolean

      Contains coordinate.

    • Rotate the geometry around a given coordinate. This modifies the geometry coordinates in place.

      參數

      • angle: number

        Rotation angle in radians.

      • anchor: Coordinate

        The rotation center.

      回傳 void

    • Scale the geometry (with an optional origin). This modifies the geometry coordinates in place.

      參數

      • sx: number

        The scaling factor in the x-direction.

      • 可選opt_sy: number

        The scaling factor in the y-direction (defaults to sx).

      • 可選opt_anchor: Coordinate

        The scale origin (defaults to the center of the geometry extent).

      回傳 void

    • Gets a value.

      參數

      • key: string

        Key name.

      回傳 any

      Value.

      stable

    • Get a list of object property names.

      回傳 string[]

      List of property names.

      stable

    • Get an object of all property names and values.

      回傳 { [k: string]: any }

      Object.

      stable

    • Sets a value.

      參數

      • key: string

        Key name.

      • value: any

        Value.

      • 可選opt_silent: boolean

        Update without triggering an event.

      回傳 void

      stable

    • Sets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).

      參數

      • values: { [k: string]: any }

        Values.

      • 可選opt_silent: boolean

        Update without triggering an event.

      回傳 void

      stable

    • Unsets a property.

      參數

      • key: string

        Key name.

      • 可選opt_silent: boolean

        Unset without triggering an event.

      回傳 void

      stable

    • Increases the revision counter and dispatches a 'change' event.

      回傳 void

    • Get the version number for this object. Each time the object is modified, its version number will be incremented.

      回傳 number

      Revision.

    • Listen for a certain type of event.

      參數

      • type: string | string[]

        The event type or array of event types.

      • listener: Function

        The listener function.

      • 可選opt_this: Object

        The object to use as this in listener.

      回傳 Object | Object[]

      Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.

      stable

    • Listen once for a certain type of event.

      參數

      • type: string | string[]

        The event type or array of event types.

      • listener: Function

        The listener function.

      • 可選opt_this: Object

        The object to use as this in listener.

      回傳 Object | Object[]

      Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.

      stable

    • Unlisten for a certain type of event.

      參數

      • type: string | string[]

        The event type or array of event types.

      • listener: Function

        The listener function.

      • 可選opt_this: Object

        The object which was used as this by the listener.

      回傳 void

      stable

    • 函數

      Removes an event listener using the key returned by on() or once(). Note that using the ol.Observable.unByKey static function is to be preferred.

      參數

      • key: Object | Object[]

        The key returned by on() or once() (or an array of keys).

      回傳 void

      stable

    構造函數