获取或设置一个 updateend
事件的 handler 处理器。
获取或设置一个 updatestart
事件的 handler 处理器。
获取经纬度坐标。
设置经纬度坐标,仅 CIM 模式下支持。
获取旋转四元数
设置旋转四元数
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Optional
options: boolean | AddEventListenerOptions将摄像机聚焦至空间中心。
聚焦的空间
相机距离焦点距离,单位 cm
镜头俯仰角(倾角)弧度角
将摄像机聚焦至指定点。
聚焦的全局笛卡尔位置坐标
相机距离焦点距离,单位 cm
镜头俯仰角(倾角)弧度角
将摄像机聚焦至指定点。
聚焦的 CIM 经纬度位置坐标
相机距离焦点距离,单位 cm
镜头俯仰角(倾角)弧度角
聚焦的模型
相机距离焦点距离,单位 cm
镜头俯仰角(倾角)弧度角
按照索引值获取相机的轨道。
相机轨道的索引
按照名称获取相机的轨道。
相机轨道的名称
使当前摄像机看向一个给定的空间中心。
表示一个空间的包围信息
使当前摄像机看向一个点。
看向的全局笛卡尔位置坐标
使当前摄像机看向一个点。
看向的 CIM 经纬度位置坐标;
使当前摄像机看向一个模型的中心。
看向的模型
Removes the event listener in target's event listener list with the same type, callback, and options.
Optional
options: boolean | EventListenerOptions设置经纬度坐标,仅 CIM 模式下支持。
请使用 coordinate 属性代替
camera.setCimCoordinate(new CimCoordinates({ ... }));
// 请使用下面的方式替代
camera.coordinate = [116.0, 39.0, 10.0]; // [经度 (角度值), 纬度 (角度值), 高度 (单位 m)]
camera.update();
经纬度坐标
应用中所有摄像机的基础类。