赣州市洪水风险预警系统三维版本
xiebin
2023-02-23 210bca4e717b4a8c3aa6269ecc2f5160a13d81a6
三维模型部件点位清空
1 files modified
10 ■■■■ changed files
widgets/HydrologicalNetwork/Widget.js 10 ●●●● patch | view | raw | blame | history
widgets/HydrologicalNetwork/Widget.js
@@ -14,6 +14,7 @@
        netWorkImportant: [],
        netWorkEasy: [],
        netWorkPrimitives: [],
        bill:[],
        startup: function startup() {
            var self = this;
            // this.inherited(arguments);
@@ -192,12 +193,12 @@
                            disableDepthTestDistance: Number.POSITIVE_INFINITY
                        };
                        var bill = self.map.entities.add({
                        bill.push(self.map.entities.add({
                            id: data.siteId,
                            position: Cesium.Cartesian3.fromDegrees(lgtd, lttd, 100),
                            label: labble,
                            billboard: billbo
                        });
                        }))
                    }
                }
@@ -229,6 +230,11 @@
        onClose: function onClose() {
            //面板关闭的时候触发 (when this panel is closed trigger)
            var self = this;
            self.bill.forEach(e => {
                this.map.entities.remove(e)
            })
            self.bill = []
            self.map.entities.removeAll();
            topic.publish("stopflays", null);
            //关闭正在播放的音频