GeoAnimationDisplay

显示隐藏动画

new Cesium.GeoAnimationDisplay(options)

Name Type Description
options Object optional 参数选项:
Name Type Default Description
id String optional 动画唯一编号
name String optional 动画名称
startTime Number 0 optional 开启时间,单位秒,0:0秒后开始
duration Number 3 optional 持续时间,单位秒
element GeoElement optional 元素对象
Author:
  • zj
Example:
var pathElement = new Cesium.GeoPolylineElement({
		viewer: viewer,
		positions: [
			[116.45304793070586, 31.592192169546728],
			[116.71811652713569, 30.455176524911696],
			[119.71811652713569, 31.455176524911696],
			[119.71811652713569, 32.455176524911696],
			[117.71811652713569, 32.455176524911696],
		]
	});

	let modelEl = new Cesium.GeoModelElement({
		viewer,
		url:"/geomap-api/JsCesuimDemo/resource/models/CesiumMilkTruck/CesiumMilkTruck.gltf",
		position: [116.45304793070586, 31.592192169546728, 0]
	});
	
	let ap = new Cesium.GeoAnimationDisplay({
		path: pathElement,
		element: modelEl,
		startTime: 0,
		duration: 10
	});

	ap.play(); 

Extends

Members

readonlyonStop : Event

动画播放完成时事件
Inherited From:

Methods

destroy()

销毁

pause()

暂停
Inherited From:

play()

播放
Inherited From:

reset()

重置
Inherited From:

stop()

停止
Inherited From: