管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2022-12-30 a55625f79b5bea88a04dc5cebf264a61cd594547
public/LfSKyline/js/index.js
@@ -4,7 +4,17 @@
    treePlay: 'PS\\全国管网专题图展示',
    objTypes: [19, 23, 26, 29, 34, 36, 38, 39, 40],
    init: function () {
        var flag = Detect.detectIE();
        if (!flag) {
            this.showDownload();
            return;
        }
        this.initSG();
    },
    // 显示下载
    showDownload: function () {
        $("#mapView").hide();
        $("#download").show();
    },
    initSG: function () {
        SG = TEWinEx.CreateInstance("TerraExplorerX.SGWorld74"); // SGWorld74,SGWorld71,SGWorld66
@@ -17,9 +27,9 @@
        Index.getLayers("", layers);
        Index.ininTrees("layers", layers);
        // Index.flyToStart();
    },
    getLayers: function (pid, layers) {
        var next = SG.ProjectTree.GetNextItem(pid, 11);
        while (next) {
@@ -79,7 +89,7 @@
                SG.Command.Execute(1028, null)
                break;
            case 2:
                SG.Command.Execute(2314,0);
                SG.Command.Execute(2314, 0);
                break;
            case 3:
                var model_ID = SG.ProjectTree.FindItem(this.treePlay);