liuyg
2021-07-02 25ce610f6ecca7325e7a743dc032c4a76559c63d
widgets/FlyRoute/Widget.js
@@ -14,10 +14,12 @@
         topic.subscribe("closeFlyRoute", lang.hitch(this, this.closeFlyRoute));
         var self = this;
         // this.inherited(arguments);
         $('.close-flyrouter').click(function () {
            self.closeFlyRoute('FlyRoute')
            self.closeFlyRoute('FlyRoute');
            $('.jimu-widget-visualAngle').find('.v-a-Two').removeClass('on');//清楚样式
            topic.publish('closeFly', 'closeFly');
         });
      },
@@ -46,7 +48,7 @@
               }
               // }
               self._loadRoute(self.allRoutes[0].sites);
               $("#flightRoute").on("change", function (e) {
@@ -169,7 +171,6 @@
            var geodesic = new Cesium.EllipsoidGeodesic();
            geodesic.setEndPoints(point1cartographic, point2cartographic);
            var s = geodesic.surfaceDistance;
            //console.log(Math.sqrt(Math.pow(distance, 2) + Math.pow(endheight, 2)));
            //返回两点之间的距离
            s = Math.sqrt(Math.pow(s, 2) + Math.pow(point2cartographic.height - point1cartographic.height, 2));
            distance = distance + s;
@@ -238,7 +239,7 @@
         this.resize();
      },
      resize: function resize() {},
      resize: function resize() { },
      destroy: function destroy() {
         //销毁的时候触发