1
13693261870
2024-04-03 8b1521987b83f3b736a1bccfd1ea41de1fcc778c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
var sgworld = null;
 
var lMenu;
//logo
var logo = {
    'url': url + 'Img/logo.png',
    'width': '1920',
    'height': '99',
    'left': '0',
    'top': '0',
    'horizontal': 'center'
};
 
//头部按钮
var tMenu = {
    "panels": [{
        "children": [{
            "title": "基础工具",
            "callBack": "chaXun",
            "icon": url + "Img/a2.png",
            "param": "1",
            "height": 77,
            "width": 100
        }],
        "left": 5,
        "title": "a1",
        "top": 35,
        "bottom": 0,
        "right": -1,
        "visible": "true",
        "direction": "wh"
    }, {
        "children": [{
            "title": "基础工具",
            "callBack": "chaXun",
            "icon": url + "Img/a1.png",
            "param": "2",
            "height": 77,
            "width": 100
        }],
        "left": 5,
        "title": "a2",
        "top": 35,
        "bottom": 0,
        "right": -1,
        "visible": "false",
        "direction": "wh"
    }, {
        "children": [{
            "title": "高级工具",
            "callBack": "setMenu",
            "icon": url + "Img/a4.png",
            "param": "1",
            "height": 77,
            "width": 100
        }],
        "left": 105,
        "title": "a3",
        "top": 35,
        "bottom": 0,
        "right": -1,
        "visible": "true",
        "direction": "wh"
    }, {
        "children": [{
            "title": "高级工具",
            "callBack": "setMenu",
            "icon": url + "Img/a3.png",
            "param": "2",
            "height": 77,
            "width": 100
        }],
        "left": 105,
        "title": "a4",
        "top": 35,
        "bottom": 0,
        "right": -1,
        "visible": "false",
        "direction": "wh"
    }, {
        "children": [{
            "title": "空间查询",
            "callBack": "kjcx",
            "icon": url + "Img/a6.png",
            "param": "1",
            "height": 77,
            "width": 100
        }],
        "left": 205,
        "title": "a5",
        "top": 35,
        "bottom": 0,
        "right": -1,
        "visible": "false",
        "direction": "wh"
    }, {
        "children": [{
            "title": "统计分析",
            "callBack": "tjfx",
            "icon": url + "Img/a5.png",
            "param": "1",
            "height": 77,
            "width": 100
        }],
        "left": 305,
        "title": "a6",
        "top": 35,
        "bottom": 0,
        "right": -1,
        "visible": "false",
        "direction": "wh"
    }]
};
 
 
//初始化控件以及加载内容
var TE = "";
$(function () {
    TE = document.getElementById("TBAX");
    if (TE == "" || TE == null || TE == undefined) {
        TE = document.createElement("object");
        TE.id = "TBAX";
        TE.classid = "clsid:B23DDF84-B652-4E34-9E57-77B8731199FE";
        //TE.classid = "CLSID:3a4f9196-65a8-11d5-85c1-0001023952c1";
        TE.style.width = "100%";
        TE.style.height = "100%";
        TE.style.marginLeft = "-1920px";
    }
    document.body.appendChild(TE);
    sgworld = TBAX.createSgworld();
    //sgworld = TE.CreateInstance("TerraExplorerX.SGWorld71");
        //左侧菜单
        lMenu = {
            top: "160",
            menu: RootCatlog
        };
        setTimeout(function () {
            sgworld.Open(FlyPath);
            TBAX.setLogo(JSON.stringify(logo), "2");
            TBAX.setOpacity(0.8);
            //TBAX.setLMenu(JSON.stringify(lMenu));
            TBAX.setFullBtn2(JSON.stringify(tMenu));
            sgworld.AttachEvent("OnLoadFinished", OnloadFished);
        }, 500);
});
 
//加载完成事件
function OnloadFished() {
    $("#bg").css("display", "none");
    TE.style.marginLeft = "0px";
    sgworld.AttachEvent("OnLButtonDblClk", OnLButtonUp);
}
 
function close() {
    TBAX.ActiveXDispose();
}