代码如下:
Gloabviewer = new Cesium.Viewer('cesiumContainer');
var initialScanColor = "2263e6";
Gloabviewer.scene.scanEffect.show = true;
Gloabviewer.scene.scanEffect.centerPostion = new Cesium.Cartesian3.fromDegrees(121.485457781151,31.240925443989802,3.0);
Gloabviewer.scene.scanEffect.mode = Cesium.ScanEffectMode.LINE;
Gloabviewer.scene.scanEffect.color = cesium.Color.fromCssColorString(initialScanColor);
Gloabviewer.scene.scanEffect.speed = 3;
var dir = new Cesium.Cartesian3();
var startPosition = new Cesium.Cartesian3.fromDegrees(121.46995861055099,31.236599929777405,3.0);
Cesium.Cartesian3.subtract(startPosition, Gloabviewer.scene.scanEffect.centerPostion, dir);
Gloabviewer.scene.scanEffect.lineMoveDirection = dir;
为什么执行报错?
为An error occurred while rendering. Rendering has stopped.