管道基础大数据平台系统开发-【前端】-新系統界面
1
13693261870
2023-02-28 d9a44b11e08ce78a9935345f54341c2f7183edf2
public/LfSKyline/js/index.js
@@ -15,25 +15,26 @@
    showDownload: function () {
        $("#mapView").hide();
        $("#download").show();
        let a = document.getElementById('aDownload');
        var a = document.getElementById('aDownload');
        a.href = LFData + "/soft/TEv7.4.zip";
    },
    initSG: function () {
        TerraExplorerInformationWindowEx.AttachTo3dWindow(TEWinEx);
        TEInfoEx.AttachTo3dWindow(TEWinEx);
        SG = TEWinEx.CreateInstance("TerraExplorerX.SGWorld74"); // SGWorld74,SGWorld71,SGWorld66
        SG.AttachEvent("OnLoadFinished", this.loadFinished);
        SG.Open(app.fly);
    },
    loadFinished: function () {
        $("#TEInfoEx").addClass("rb");
        SG.ProjectTree.ShowSearchTool = false;
        SG.DetachEvent("OnLoadFinished", Index.loadFinished);
        // var layers = [];
        // Index.getLayers("", layers);
        // Index.ininTrees("layers", layers);
        // Index.flyToStart();
    },
    //
    getLayers: function (pid, layers) {
        var next = SG.ProjectTree.GetNextItem(pid, 11);
        while (next) {
@@ -108,8 +109,7 @@
        // this.menuFlag = !this.menuFlag;
    }
}
$(function () {
    Index.init();
});