Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
参数选项:
|
Example:
var singleArrowElement = new Cesium.GeoSingleArrowElement({
viewer: viewer,
positions: [
[106.50255907979172, 30.124293956577112],
[109.57560428200443, 28.695531735044707],
[112.19039125075413, 29.356410433383108],
[114.08748761156725, 30.56765059559664]
],
lineColor: new Cesium.Color(0, 1, 1, 1),
lineWidth: 5,
lineStyle: GeoElement.LINE_STYLE.SOLID,
fillMode: "gradient", //gradient
fillColor: new Cesium.Color(0, 0, 1, 1),
fillStartColor: new Cesium.Color(0, 0, 1, 1),
fillEndColor: new Cesium.Color(0, 1, 0, 1),
visibleSwallowTail: true
})
var animation = new Cesium.GeoAnimationGrow({
name: '单箭头,多途径点的动画',
startTime: 0,
duration: 5,
element: singleArrowElement
});
let animationManager = new Cesium.GeoAnimationManager({
animations: [animation]
});
let animationPlayPanel = new Cesium.GeoAnimationPlayPanelWidget({
viewer,
animationManager
});
Methods
隐藏面板
显示面板