ol-cesium
    Preparing search index...

    Class OLCSCamera

    Index

    Constructors

    • This object takes care of additional 3d-specific properties of the view and ensures proper synchronization with the underlying raw Cesium.Camera object.

      Parameters

      • scene: Scene
      • map: Map

      Returns OLCSCamera

    Methods

    • calculate the distance between camera and centerpoint based on the resolution and latitude value

      Parameters

      • resolution: number

        Number of map units per pixel.

      • latitude: number

        Latitude in radians.

      Returns number

      The calculated distance.

    • calculate the resolution based on a distance(camera to position) and latitude value

      Parameters

      • distance: number
      • latitude: number

      Returns number

      The calculated resolution.

    • Check if the underlying camera state has changed and ensure synchronization.

      Parameters

      • Optionalopt_dontSync: boolean

        Do not synchronize the view.

      Returns void

    • Returns number

      Altitude in meters.

    • Api

      Returns Coordinate

      Same projection as the ol.View.

      Shortcut for ol.View.getCenter().

    • Returns number

      Distance in meters.

    • Returns number

      Heading in radians.

    • Api

      Calculates position under the camera.

      Returns number[]

      Coordinates in same projection as the ol.View.

    • Returns number

      Tilt in radians.

    • Calculates the values of the properties from the current ol.View state.

      Returns void

    • Parameters

      • altitude: number

        In meters.

      Returns void

    • Parameters

      • center: number[]

        Same projection as the ol.View.

      Returns void

      Shortcut for ol.View.setCenter().

    • Parameters

      • distance: number

        In meters.

      Returns void

    • Parameters

      • heading: number

        In radians.

      Returns void

    • Sets the position of the camera.

      Parameters

      • position: number[]

        Same projection as the ol.View.

      Returns void

    • Parameters

      • tilt: number

        In radians.

      Returns void

    • Calculates the values of the properties from the current Cesium.Camera state. Modifies the center, resolution and rotation properties of the view.

      Returns void