shuishen
2021-06-11 db45def58993c3ed79b47f1a0ec19740ec229211
widgets/visualAngle/Widget.js
@@ -31,6 +31,7 @@
            // 暴露在外的接口
            var that = this;
            $(".v-a-One").click(function () {
               topic.publish('closeFlyRoute', 'FlyRoute');
               $(this).addClass('on').siblings().removeClass('on');
               // 控制视角平移:
               that.map.scene.screenSpaceCameraController.enableRotate = true;
@@ -55,22 +56,26 @@
            })
            $(".v-a-Two").click(function () {
               $(this).addClass('on').siblings().removeClass('on');
               // 关闭量算
               topic.publish('closeMeasurement', 'Measurement');
               // 关闭卷帘
               topic.publish('closeRolling', 'Rolling');
               // 关闭分屏
               topic.publish('closeSplitScreen', 'SplitScreen');
               // 关闭标记
               topic.publish('closeSign', 'Sign');
               // 飞行路线
               $('.jimu-widget-Location').hide();
               $('.jimu-widget-MapPrinting').hide();
               $('.jimu-widget-CoorPosition').hide();
               $('.jimu-widget-Measurement').hide();
               $('.jimu-widget-Sign').hide();
               $('.jimu-widget-DynamicRiver').hide();
               $('.jimu-widget-SplitScreen').hide();
               $('.tool-y-box').stop().hide()
               $('.jimu-widget-FlyRoute').show();
               $('.jimu-widget-MapPrinting').hide();
               topic.publish('openFlyRoute', 'FlyRoute');
               $('.tool-y-box').stop().hide();
            })
            $(".v-a-Three").click(function () {
               topic.publish('closeFlyRoute', 'FlyRoute');
               $(this).addClass('on').siblings().removeClass('on');
               that.map.scene.screenSpaceCameraController.enableRotate = false
               that.map.scene.screenSpaceCameraController.enableZoom = true