the CRS of this camera
the width in pixels of the camera viewport
the height in pixels of the camera viewport
optional values
Gets or sets the current camera.
Gets the currently registered controls, if any.
Note: To register controls, use setControls.
Gets or sets the distance to the far plane. The distance will be clamped to be within the bounds defined by minNearPlane and maxFarPlane.
The height, in pixels, of this view.
Gets or sets the maximum distance allowed for the camera far plane.
Gets or sets the minimum distance allowed for the camera near plane.
Gets or sets the distance to the near plane. The distance will be clamped to be within the bounds defined by minNearPlane and maxFarPlane.
The width, in pixels, of this view.
Fire an event type.
Return the position in the requested CRS, or in camera's CRS if undefined.
Optional
crs: stringif defined (e.g 'EPSG:4236') the camera position will be returned in this CRS
Coordinates object holding camera's position
Registers external controls that must be udpated periodically.
Note: this is the case of simple controls in the examples/{js,jsm}/controls
folder
of THREE.js (e.g MapControls
):
'change'
events when the controls' state has changed and the view must be rendered,update()
method to update the controls' state.For more complex controls, such as the package camera-controls
,
a more complex logic is required. Please refer to the appropriate examples for a detailed
documentation on how to bind Giro3D and those controls.
The controls to register. If null
, currently registered controls
are unregistered (they are not disabled however).
Adds geospatial capabilities to three.js cameras.