liuyg
2021-07-02 25ce610f6ecca7325e7a743dc032c4a76559c63d
widgets/FlyRoute/fly.js
@@ -308,7 +308,14 @@
            p = that.allSites[l + 1].pitch - that.allSites[l].pitch;
            h = that.allSites[l + 1].heading - that.allSites[l].heading;
            var tem = Cesium.Math.toDegrees(that.allSites[l + 1].heading) - Cesium.Math.toDegrees(that.allSites[l].heading);
            if (Math.abs(tem) > 180) {
                if (tem >= 0) {
                    tem = 360 - tem;
@@ -317,8 +324,13 @@
                }
                h = Cesium.Math.toRadians(tem);
            }
            //that.b=that.allSites[l].time*20
            that.setInterval_fly = setInterval(that.setcamera, 20);
        } else {
            that.play_bool = true;
            that.l = 0;