egovamap 0.33.3 → 0.33.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/egovamap/egovaglobe.js +373 -355
- package/egovamap/egovamap.js +5168 -4972
- package/package.json +1 -1
package/egovamap/egovaglobe.js
CHANGED
|
@@ -2,26 +2,26 @@ var scene = null;
|
|
|
2
2
|
|
|
3
3
|
function getCookie(name) {
|
|
4
4
|
var strCookie = window.document.cookie;
|
|
5
|
-
var arrCookie = strCookie.split(
|
|
5
|
+
var arrCookie = strCookie.split('; ');
|
|
6
6
|
for (var i = 0; i < arrCookie.length; i++) {
|
|
7
|
-
var arr = arrCookie[i].split(
|
|
7
|
+
var arr = arrCookie[i].split('=');
|
|
8
8
|
if (arr[0] == name) return arr[1];
|
|
9
9
|
}
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
function setCookie(name, value) {
|
|
14
|
-
window.document.cookie = name +
|
|
14
|
+
window.document.cookie = name + '=' + value;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
function checkGlobeServerURL(url, callback) {
|
|
18
18
|
if (!url) return;
|
|
19
19
|
|
|
20
|
-
var cookieUrl = getCookie(
|
|
21
|
-
var gisProxyList = url.split(
|
|
20
|
+
var cookieUrl = getCookie('globeGisUrl');
|
|
21
|
+
var gisProxyList = url.split(';');
|
|
22
22
|
cookieUrl && gisProxyList.push(cookieUrl);
|
|
23
23
|
if (gisProxyList.length <= 1) {
|
|
24
|
-
setCookie(
|
|
24
|
+
setCookie('globeGisUrl', url);
|
|
25
25
|
callback(url);
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
@@ -33,14 +33,14 @@ function checkGlobeServerURL(url, callback) {
|
|
|
33
33
|
|
|
34
34
|
function checkGlobeProxy(proxyUrl, params, callback) {
|
|
35
35
|
var img = new Image();
|
|
36
|
-
if (proxyUrl.indexOf(
|
|
37
|
-
proxyUrl = window.location.origin +
|
|
36
|
+
if (proxyUrl.indexOf('http') != 0) {
|
|
37
|
+
proxyUrl = window.location.origin + '/' + proxyUrl;
|
|
38
38
|
}
|
|
39
|
-
img.src = proxyUrl +
|
|
39
|
+
img.src = proxyUrl + '/symbol/default.png';
|
|
40
40
|
img.onload = function (e1) {
|
|
41
41
|
if (!params.isLoad) {
|
|
42
42
|
params.isLoad = true;
|
|
43
|
-
setCookie(
|
|
43
|
+
setCookie('globeGisUrl', proxyUrl);
|
|
44
44
|
callback(proxyUrl);
|
|
45
45
|
}
|
|
46
46
|
img = null;
|
|
@@ -75,11 +75,11 @@ var EGovaGlobeMap = function (
|
|
|
75
75
|
) {
|
|
76
76
|
var that = this;
|
|
77
77
|
scene = pScene;
|
|
78
|
-
var parentScene = pScene.pageId ||
|
|
79
|
-
var msgPrefix = prefix ||
|
|
78
|
+
var parentScene = pScene.pageId || 'parentScene';
|
|
79
|
+
var msgPrefix = prefix || 'globemappage';
|
|
80
80
|
//var config = parent.config || '';
|
|
81
81
|
//var humanID = parent.humanID || '';
|
|
82
|
-
var prefix =
|
|
82
|
+
var prefix = 'msgPrefix=' + msgPrefix + '&parentScene=' + parentScene;
|
|
83
83
|
that.globeVisible = false;
|
|
84
84
|
that.globeLoaded = false;
|
|
85
85
|
that.isLoading = false;
|
|
@@ -90,19 +90,19 @@ var EGovaGlobeMap = function (
|
|
|
90
90
|
that.mapContainer = null;
|
|
91
91
|
|
|
92
92
|
that.globeMapContainer =
|
|
93
|
-
$container.getElementsByClassName(
|
|
93
|
+
$container.getElementsByClassName('globemap-container')[0];
|
|
94
94
|
if (!that.globeMapContainer) {
|
|
95
95
|
var globeMapHTML =
|
|
96
96
|
'<iframe class="globemap-iframe" webkitAllowFullScreen="true" mozallowfullscreen="true" allowFullScreen="true"></iframe>';
|
|
97
|
-
var element = document.createElement(
|
|
98
|
-
element.classList.add(
|
|
97
|
+
var element = document.createElement('div');
|
|
98
|
+
element.classList.add('globemap-container');
|
|
99
99
|
element.innerHTML = globeMapHTML;
|
|
100
100
|
$container.appendChild(element);
|
|
101
101
|
that.globeMapContainer = element;
|
|
102
102
|
}
|
|
103
103
|
that.$globeMapFrame =
|
|
104
|
-
that.globeMapContainer.getElementsByClassName(
|
|
105
|
-
that.mapContainer = $container.getElementsByClassName(
|
|
104
|
+
that.globeMapContainer.getElementsByClassName('globemap-iframe')[0];
|
|
105
|
+
that.mapContainer = $container.getElementsByClassName('emap-container')[0];
|
|
106
106
|
that.init = function () {
|
|
107
107
|
var loadingGlobe = function (serverURL, callback) {
|
|
108
108
|
//判断是否采用了延迟加载,如果没有采用,就在初始化时加载地图
|
|
@@ -118,24 +118,24 @@ var EGovaGlobeMap = function (
|
|
|
118
118
|
globeConfig.globeServerURL =
|
|
119
119
|
serverURL || globeConfig.globeServerURL;
|
|
120
120
|
globeParams.globeServerURL = globeConfig.globeServerURL; //服务地址写回全局配置,其他地方可能会用到
|
|
121
|
-
var proxyURL = serverURL +
|
|
121
|
+
var proxyURL = serverURL + '/home/gis/proxy.htm';
|
|
122
122
|
that.isLoading = true;
|
|
123
123
|
var globeMapUrl =
|
|
124
124
|
context.rootPath +
|
|
125
125
|
context.assetsPath +
|
|
126
|
-
|
|
126
|
+
'/globe.html?' +
|
|
127
127
|
prefix +
|
|
128
|
-
|
|
128
|
+
'&serverURL=' +
|
|
129
129
|
globeConfig.globeServerURL +
|
|
130
|
-
|
|
130
|
+
'&proxyURL=' +
|
|
131
131
|
proxyURL +
|
|
132
|
-
|
|
132
|
+
'&humanID=' +
|
|
133
133
|
globeConfig.humanID;
|
|
134
134
|
if (context.globeParams.debug) {
|
|
135
|
-
globeMapUrl +=
|
|
135
|
+
globeMapUrl += '&debug=true';
|
|
136
136
|
}
|
|
137
137
|
if (context.misURL) {
|
|
138
|
-
globeMapUrl = globeMapUrl +
|
|
138
|
+
globeMapUrl = globeMapUrl + '&misURL=' + context.misURL;
|
|
139
139
|
}
|
|
140
140
|
if (
|
|
141
141
|
mapConfig != undefined &&
|
|
@@ -143,18 +143,18 @@ var EGovaGlobeMap = function (
|
|
|
143
143
|
) {
|
|
144
144
|
for (var item in mapConfig.mapconfig3D) {
|
|
145
145
|
globeMapUrl +=
|
|
146
|
-
|
|
146
|
+
'&' +
|
|
147
147
|
item +
|
|
148
|
-
|
|
148
|
+
'=' +
|
|
149
149
|
encodeURIComponent(mapConfig.mapconfig3D[item]);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
if (context.initAnimation) {
|
|
153
153
|
for (var item in context.initAnimation) {
|
|
154
154
|
globeMapUrl +=
|
|
155
|
-
|
|
155
|
+
'&initAnimation_' +
|
|
156
156
|
item +
|
|
157
|
-
|
|
157
|
+
'=' +
|
|
158
158
|
encodeURIComponent(context.initAnimation[item]);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
@@ -162,19 +162,19 @@ var EGovaGlobeMap = function (
|
|
|
162
162
|
that.$globeMapFrame.onload = function () {
|
|
163
163
|
if (
|
|
164
164
|
!this.contentDocument.documentElement
|
|
165
|
-
.getElementsByTagName(
|
|
165
|
+
.getElementsByTagName('head')
|
|
166
166
|
.item(0)
|
|
167
|
-
.outerHTML.includes(
|
|
167
|
+
.outerHTML.includes('initGlobe.js')
|
|
168
168
|
) {
|
|
169
169
|
var mainScript =
|
|
170
|
-
this.contentDocument.createElement(
|
|
171
|
-
mainScript.setAttribute(
|
|
170
|
+
this.contentDocument.createElement('script');
|
|
171
|
+
mainScript.setAttribute('type', 'text/javascript');
|
|
172
172
|
mainScript.setAttribute(
|
|
173
|
-
|
|
174
|
-
serverURL +
|
|
173
|
+
'src',
|
|
174
|
+
serverURL + '/library/globe/api/initGlobe.js'
|
|
175
175
|
);
|
|
176
176
|
this.contentDocument.documentElement
|
|
177
|
-
.getElementsByTagName(
|
|
177
|
+
.getElementsByTagName('head')
|
|
178
178
|
.item(0)
|
|
179
179
|
.appendChild(mainScript);
|
|
180
180
|
}
|
|
@@ -198,11 +198,11 @@ var EGovaGlobeMap = function (
|
|
|
198
198
|
//初始化时不显示地图
|
|
199
199
|
that.closeGlobe();
|
|
200
200
|
//YSP:这句代码需要加上,否则导致第一次二三维切换,位置不同步
|
|
201
|
-
that.globeMapContainer.style.display =
|
|
201
|
+
that.globeMapContainer.style.display = 'none';
|
|
202
202
|
// 三维加载完毕后
|
|
203
203
|
//that.bindEvent("globeLoadedCallback", that.onGlobeLoaded);
|
|
204
204
|
|
|
205
|
-
that.bindEvent(
|
|
205
|
+
that.bindEvent('globeLoadedCallback', function () {
|
|
206
206
|
that.onGlobeLoaded(callback);
|
|
207
207
|
});
|
|
208
208
|
};
|
|
@@ -210,23 +210,23 @@ var EGovaGlobeMap = function (
|
|
|
210
210
|
/* 绑定事件 */
|
|
211
211
|
that.bindEvent = function (msgId, msgHandler, stopOnTop) {
|
|
212
212
|
if (scene == null) return;
|
|
213
|
-
scene.on(msgPrefix +
|
|
213
|
+
scene.on(msgPrefix + ':' + msgId, msgHandler, parentScene, stopOnTop);
|
|
214
214
|
};
|
|
215
215
|
/* 触发事件 */
|
|
216
216
|
that.fireEvent = function (msgId, msgData, stopOnTop) {
|
|
217
217
|
if (scene == null) return;
|
|
218
|
-
scene.fire(msgPrefix +
|
|
218
|
+
scene.fire(msgPrefix + ':' + msgId, msgData, parentScene, stopOnTop);
|
|
219
219
|
};
|
|
220
220
|
/* 移除监听 */
|
|
221
221
|
that.removeEventBind = function (msgId, stopOnTop) {
|
|
222
222
|
if (scene == null) return;
|
|
223
|
-
scene.remove(msgPrefix +
|
|
223
|
+
scene.remove(msgPrefix + ':' + msgId, parentScene, stopOnTop);
|
|
224
224
|
};
|
|
225
225
|
|
|
226
226
|
that.dispatchSceneEvent = function (msgId, msgData) {
|
|
227
227
|
if (scene == null) return;
|
|
228
228
|
scene.fire(
|
|
229
|
-
msgPrefix +
|
|
229
|
+
msgPrefix + ':' + msgId,
|
|
230
230
|
{ args: msgData },
|
|
231
231
|
parentScene,
|
|
232
232
|
false
|
|
@@ -247,8 +247,8 @@ var EGovaGlobeMap = function (
|
|
|
247
247
|
* 三维窗口关闭
|
|
248
248
|
*/
|
|
249
249
|
that.closeGlobe = function (evt) {
|
|
250
|
-
that.globeMapContainer.style.display =
|
|
251
|
-
that.globeMapContainer.style.height =
|
|
250
|
+
that.globeMapContainer.style.display = 'block';
|
|
251
|
+
that.globeMapContainer.style.height = '0';
|
|
252
252
|
that.globeVisible = false;
|
|
253
253
|
};
|
|
254
254
|
|
|
@@ -276,24 +276,24 @@ var EGovaGlobeMap = function (
|
|
|
276
276
|
globeParams.globeServerURL ||
|
|
277
277
|
that.globeConfig.globeServerURL;
|
|
278
278
|
|
|
279
|
-
var proxyURL = serverURL +
|
|
279
|
+
var proxyURL = serverURL + '/home/gis/proxy.htm';
|
|
280
280
|
that.isLoading = true;
|
|
281
281
|
var globeMapUrl =
|
|
282
282
|
context.rootPath +
|
|
283
283
|
context.assetsPath +
|
|
284
|
-
|
|
284
|
+
'/globe.html?' +
|
|
285
285
|
prefix +
|
|
286
|
-
|
|
286
|
+
'&serverURL=' +
|
|
287
287
|
that.globeConfig.globeServerURL +
|
|
288
|
-
|
|
288
|
+
'&proxyURL=' +
|
|
289
289
|
proxyURL +
|
|
290
|
-
|
|
290
|
+
'&humanID=' +
|
|
291
291
|
that.globeConfig.humanID;
|
|
292
292
|
if (context.globeParams.debug) {
|
|
293
|
-
globeMapUrl +=
|
|
293
|
+
globeMapUrl += '&debug=true';
|
|
294
294
|
}
|
|
295
295
|
if (context.misURL) {
|
|
296
|
-
globeMapUrl = globeMapUrl +
|
|
296
|
+
globeMapUrl = globeMapUrl + '&misURL=' + context.misURL;
|
|
297
297
|
}
|
|
298
298
|
if (
|
|
299
299
|
mapConfig != undefined &&
|
|
@@ -301,18 +301,18 @@ var EGovaGlobeMap = function (
|
|
|
301
301
|
) {
|
|
302
302
|
for (var item in mapConfig.mapconfig3D) {
|
|
303
303
|
globeMapUrl +=
|
|
304
|
-
|
|
304
|
+
'&' +
|
|
305
305
|
item +
|
|
306
|
-
|
|
306
|
+
'=' +
|
|
307
307
|
encodeURIComponent(mapConfig.mapconfig3D[item]);
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
if (context.initAnimation) {
|
|
311
311
|
for (var item in context.initAnimation) {
|
|
312
312
|
globeMapUrl +=
|
|
313
|
-
|
|
313
|
+
'&initAnimation_' +
|
|
314
314
|
item +
|
|
315
|
-
|
|
315
|
+
'=' +
|
|
316
316
|
encodeURIComponent(context.initAnimation[item]);
|
|
317
317
|
}
|
|
318
318
|
}
|
|
@@ -320,19 +320,19 @@ var EGovaGlobeMap = function (
|
|
|
320
320
|
that.$globeMapFrame.onload = function () {
|
|
321
321
|
if (
|
|
322
322
|
!this.contentDocument.documentElement
|
|
323
|
-
.getElementsByTagName(
|
|
323
|
+
.getElementsByTagName('head')
|
|
324
324
|
.item(0)
|
|
325
|
-
.outerHTML.includes(
|
|
325
|
+
.outerHTML.includes('initGlobe.js')
|
|
326
326
|
) {
|
|
327
327
|
var mainScript =
|
|
328
|
-
this.contentDocument.createElement(
|
|
329
|
-
mainScript.setAttribute(
|
|
328
|
+
this.contentDocument.createElement('script');
|
|
329
|
+
mainScript.setAttribute('type', 'text/javascript');
|
|
330
330
|
mainScript.setAttribute(
|
|
331
|
-
|
|
332
|
-
serverURL +
|
|
331
|
+
'src',
|
|
332
|
+
serverURL + '/library/globe/api/initGlobe.js'
|
|
333
333
|
);
|
|
334
334
|
this.contentDocument.documentElement
|
|
335
|
-
.getElementsByTagName(
|
|
335
|
+
.getElementsByTagName('head')
|
|
336
336
|
.item(0)
|
|
337
337
|
.appendChild(mainScript);
|
|
338
338
|
}
|
|
@@ -352,8 +352,8 @@ var EGovaGlobeMap = function (
|
|
|
352
352
|
);
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
-
that.globeMapContainer.style.height =
|
|
356
|
-
that.globeMapContainer.style.display =
|
|
355
|
+
that.globeMapContainer.style.height = '100%';
|
|
356
|
+
that.globeMapContainer.style.display = 'block';
|
|
357
357
|
that.globeVisible = true;
|
|
358
358
|
}
|
|
359
359
|
};
|
|
@@ -365,7 +365,7 @@ var EGovaGlobeMap = function (
|
|
|
365
365
|
if (scene == null) return;
|
|
366
366
|
|
|
367
367
|
scene.fire(
|
|
368
|
-
msgPrefix +
|
|
368
|
+
msgPrefix + ':delayRequest',
|
|
369
369
|
{ args: [time] },
|
|
370
370
|
parentScene,
|
|
371
371
|
false
|
|
@@ -378,7 +378,7 @@ var EGovaGlobeMap = function (
|
|
|
378
378
|
that.getCameraMes = function (callback) {
|
|
379
379
|
if (scene == null) return;
|
|
380
380
|
scene.fire(
|
|
381
|
-
msgPrefix +
|
|
381
|
+
msgPrefix + ':getCameraMes',
|
|
382
382
|
{ args: [callback] },
|
|
383
383
|
parentScene,
|
|
384
384
|
false
|
|
@@ -392,7 +392,7 @@ var EGovaGlobeMap = function (
|
|
|
392
392
|
if (scene == null) return;
|
|
393
393
|
|
|
394
394
|
scene.fire(
|
|
395
|
-
msgPrefix +
|
|
395
|
+
msgPrefix + ':setCameraLimitOptions',
|
|
396
396
|
{ args: [options] },
|
|
397
397
|
parentScene,
|
|
398
398
|
false
|
|
@@ -406,7 +406,7 @@ var EGovaGlobeMap = function (
|
|
|
406
406
|
if (scene == null) return;
|
|
407
407
|
|
|
408
408
|
scene.fire(
|
|
409
|
-
msgPrefix +
|
|
409
|
+
msgPrefix + ':addCameraEvent',
|
|
410
410
|
{ args: [id, fn, obj, type] },
|
|
411
411
|
parentScene,
|
|
412
412
|
false
|
|
@@ -420,7 +420,7 @@ var EGovaGlobeMap = function (
|
|
|
420
420
|
if (scene == null) return;
|
|
421
421
|
|
|
422
422
|
scene.fire(
|
|
423
|
-
msgPrefix +
|
|
423
|
+
msgPrefix + ':removeCameraEvent',
|
|
424
424
|
{ args: [id] },
|
|
425
425
|
parentScene,
|
|
426
426
|
false
|
|
@@ -433,7 +433,7 @@ var EGovaGlobeMap = function (
|
|
|
433
433
|
that.addMouseEvent = function (id, fn, obj, type) {
|
|
434
434
|
if (scene == null) return;
|
|
435
435
|
scene.fire(
|
|
436
|
-
msgPrefix +
|
|
436
|
+
msgPrefix + ':addMouseEvent',
|
|
437
437
|
{ args: [id, fn, obj, type] },
|
|
438
438
|
parentScene,
|
|
439
439
|
false
|
|
@@ -446,7 +446,7 @@ var EGovaGlobeMap = function (
|
|
|
446
446
|
that.removeMouseEvent = function (id) {
|
|
447
447
|
if (scene == null) return;
|
|
448
448
|
scene.fire(
|
|
449
|
-
msgPrefix +
|
|
449
|
+
msgPrefix + ':removeMouseEvent',
|
|
450
450
|
{ args: [id] },
|
|
451
451
|
parentScene,
|
|
452
452
|
false
|
|
@@ -459,7 +459,7 @@ var EGovaGlobeMap = function (
|
|
|
459
459
|
that.startLoopView = function (rotateTime) {
|
|
460
460
|
if (scene == null) return;
|
|
461
461
|
scene.fire(
|
|
462
|
-
msgPrefix +
|
|
462
|
+
msgPrefix + ':startLoopView',
|
|
463
463
|
{ args: [rotateTime] },
|
|
464
464
|
parentScene,
|
|
465
465
|
false
|
|
@@ -471,7 +471,7 @@ var EGovaGlobeMap = function (
|
|
|
471
471
|
that.flyPath = function (options) {
|
|
472
472
|
if (scene == null) return;
|
|
473
473
|
scene.fire(
|
|
474
|
-
msgPrefix +
|
|
474
|
+
msgPrefix + ':flyPath',
|
|
475
475
|
{ args: [options] },
|
|
476
476
|
parentScene,
|
|
477
477
|
false
|
|
@@ -479,13 +479,13 @@ var EGovaGlobeMap = function (
|
|
|
479
479
|
};
|
|
480
480
|
that.pausePath = function () {
|
|
481
481
|
if (scene == null) return;
|
|
482
|
-
scene.fire(msgPrefix +
|
|
482
|
+
scene.fire(msgPrefix + ':pausePath', { args: [] }, parentScene, false);
|
|
483
483
|
};
|
|
484
484
|
|
|
485
485
|
that.flyTo = function (lon, lat, height, heading, pitch, roll, duration) {
|
|
486
486
|
if (scene == null) return;
|
|
487
487
|
scene.fire(
|
|
488
|
-
msgPrefix +
|
|
488
|
+
msgPrefix + ':flyTo',
|
|
489
489
|
{ args: [lon, lat, height, heading, pitch, roll, duration] },
|
|
490
490
|
parentScene,
|
|
491
491
|
false
|
|
@@ -495,7 +495,7 @@ var EGovaGlobeMap = function (
|
|
|
495
495
|
that.showPolylineTrail = function (infoJson, zoom, clear) {
|
|
496
496
|
if (scene == null) return;
|
|
497
497
|
scene.fire(
|
|
498
|
-
msgPrefix +
|
|
498
|
+
msgPrefix + ':showPolylineTrail',
|
|
499
499
|
{ args: [infoJson, zoom, clear] },
|
|
500
500
|
parentScene,
|
|
501
501
|
false
|
|
@@ -514,9 +514,9 @@ var EGovaGlobeMap = function (
|
|
|
514
514
|
) {
|
|
515
515
|
if (scene == null) return;
|
|
516
516
|
|
|
517
|
-
layerName = layerName ||
|
|
518
|
-
var clickBackName =
|
|
519
|
-
var mouseOverBackName =
|
|
517
|
+
layerName = layerName || 'point';
|
|
518
|
+
var clickBackName = 'showPointClick' + layerName;
|
|
519
|
+
var mouseOverBackName = 'showPointMouseMove' + layerName;
|
|
520
520
|
|
|
521
521
|
that.removeEventBind(clickBackName);
|
|
522
522
|
that.removeEventBind(mouseOverBackName);
|
|
@@ -538,7 +538,7 @@ var EGovaGlobeMap = function (
|
|
|
538
538
|
}
|
|
539
539
|
|
|
540
540
|
scene.fire(
|
|
541
|
-
msgPrefix +
|
|
541
|
+
msgPrefix + ':showPoint',
|
|
542
542
|
{
|
|
543
543
|
args: [
|
|
544
544
|
jsonInfo,
|
|
@@ -558,7 +558,7 @@ var EGovaGlobeMap = function (
|
|
|
558
558
|
that.switchLayer = function (options) {
|
|
559
559
|
if (scene == null) return;
|
|
560
560
|
scene.fire(
|
|
561
|
-
msgPrefix +
|
|
561
|
+
msgPrefix + ':switchLayer',
|
|
562
562
|
{ args: [options] },
|
|
563
563
|
parentScene,
|
|
564
564
|
false
|
|
@@ -567,7 +567,7 @@ var EGovaGlobeMap = function (
|
|
|
567
567
|
that.addBaseLayers = function (options, clear) {
|
|
568
568
|
if (scene == null) return;
|
|
569
569
|
scene.fire(
|
|
570
|
-
msgPrefix +
|
|
570
|
+
msgPrefix + ':addBaseLayers',
|
|
571
571
|
{ args: [options, clear] },
|
|
572
572
|
parentScene,
|
|
573
573
|
false
|
|
@@ -577,7 +577,7 @@ var EGovaGlobeMap = function (
|
|
|
577
577
|
that.measure = function (options) {
|
|
578
578
|
if (scene == null) return;
|
|
579
579
|
scene.fire(
|
|
580
|
-
msgPrefix +
|
|
580
|
+
msgPrefix + ':measure',
|
|
581
581
|
{ args: [options] },
|
|
582
582
|
parentScene,
|
|
583
583
|
false
|
|
@@ -587,7 +587,7 @@ var EGovaGlobeMap = function (
|
|
|
587
587
|
that.configServiceLayer = function (jsonInfo, option, layerName) {
|
|
588
588
|
if (scene == null) return;
|
|
589
589
|
scene.fire(
|
|
590
|
-
msgPrefix +
|
|
590
|
+
msgPrefix + ':configServiceLayer',
|
|
591
591
|
{ args: [jsonInfo, option, layerName] },
|
|
592
592
|
parentScene,
|
|
593
593
|
false
|
|
@@ -608,10 +608,10 @@ var EGovaGlobeMap = function (
|
|
|
608
608
|
if (scene == null) return;
|
|
609
609
|
// 移除监听
|
|
610
610
|
|
|
611
|
-
layerName = layerName ||
|
|
612
|
-
var clickBackName =
|
|
613
|
-
var mouseOverBackName =
|
|
614
|
-
var dragCircleBackName =
|
|
611
|
+
layerName = layerName || 'polygon';
|
|
612
|
+
var clickBackName = 'showPolygonClick' + layerName;
|
|
613
|
+
var mouseOverBackName = 'showPolygonMouseMove' + layerName;
|
|
614
|
+
var dragCircleBackName = 'dragCircle' + layerName;
|
|
615
615
|
|
|
616
616
|
that.removeEventBind(clickBackName);
|
|
617
617
|
that.removeEventBind(mouseOverBackName);
|
|
@@ -643,7 +643,7 @@ var EGovaGlobeMap = function (
|
|
|
643
643
|
}
|
|
644
644
|
|
|
645
645
|
scene.fire(
|
|
646
|
-
msgPrefix +
|
|
646
|
+
msgPrefix + ':showPolygon',
|
|
647
647
|
{
|
|
648
648
|
args: [
|
|
649
649
|
jsonInfo,
|
|
@@ -672,10 +672,10 @@ var EGovaGlobeMap = function (
|
|
|
672
672
|
) {
|
|
673
673
|
if (scene == null) return;
|
|
674
674
|
|
|
675
|
-
layerName = layerName ||
|
|
675
|
+
layerName = layerName || 'addMMSPoint';
|
|
676
676
|
|
|
677
|
-
var clickBackName =
|
|
678
|
-
var mouseOverBackName =
|
|
677
|
+
var clickBackName = 'addMMSPointClick' + layerName;
|
|
678
|
+
var mouseOverBackName = 'addMMSPointMouseMove' + layerName;
|
|
679
679
|
|
|
680
680
|
that.removeEventBind(clickBackName);
|
|
681
681
|
that.removeEventBind(mouseOverBackName);
|
|
@@ -698,7 +698,7 @@ var EGovaGlobeMap = function (
|
|
|
698
698
|
}
|
|
699
699
|
|
|
700
700
|
scene.fire(
|
|
701
|
-
msgPrefix +
|
|
701
|
+
msgPrefix + ':showMMSPoint',
|
|
702
702
|
{
|
|
703
703
|
args: [
|
|
704
704
|
pointJsonInfo,
|
|
@@ -726,10 +726,10 @@ var EGovaGlobeMap = function (
|
|
|
726
726
|
) {
|
|
727
727
|
if (scene == null) return;
|
|
728
728
|
|
|
729
|
-
layerName = layerName ||
|
|
729
|
+
layerName = layerName || 'add3dModel';
|
|
730
730
|
|
|
731
|
-
var clickBackName =
|
|
732
|
-
var mouseOverBackName =
|
|
731
|
+
var clickBackName = 'add3dModelClick' + layerName;
|
|
732
|
+
var mouseOverBackName = 'add3dModelMouseMove' + layerName;
|
|
733
733
|
|
|
734
734
|
that.removeEventBind(clickBackName);
|
|
735
735
|
that.removeEventBind(mouseOverBackName);
|
|
@@ -752,7 +752,7 @@ var EGovaGlobeMap = function (
|
|
|
752
752
|
}
|
|
753
753
|
|
|
754
754
|
scene.fire(
|
|
755
|
-
msgPrefix +
|
|
755
|
+
msgPrefix + ':add3dModel',
|
|
756
756
|
{
|
|
757
757
|
args: [
|
|
758
758
|
jsonInfo,
|
|
@@ -780,7 +780,7 @@ var EGovaGlobeMap = function (
|
|
|
780
780
|
if (scene == null) return;
|
|
781
781
|
|
|
782
782
|
scene.fire(
|
|
783
|
-
msgPrefix +
|
|
783
|
+
msgPrefix + ':setModelOperation',
|
|
784
784
|
{ args: [jsonInfo, zoom, clear, options, modelName] },
|
|
785
785
|
parentScene,
|
|
786
786
|
false
|
|
@@ -800,9 +800,9 @@ var EGovaGlobeMap = function (
|
|
|
800
800
|
if (scene == null) return;
|
|
801
801
|
// 移除监听
|
|
802
802
|
|
|
803
|
-
layerName = layerName ||
|
|
804
|
-
var clickBackName =
|
|
805
|
-
var mouseOverBackName =
|
|
803
|
+
layerName = layerName || 'polyline';
|
|
804
|
+
var clickBackName = 'showPolylineClick' + layerName;
|
|
805
|
+
var mouseOverBackName = 'showPolylineMouseMove' + layerName;
|
|
806
806
|
|
|
807
807
|
that.removeEventBind(clickBackName);
|
|
808
808
|
that.removeEventBind(mouseOverBackName);
|
|
@@ -824,7 +824,7 @@ var EGovaGlobeMap = function (
|
|
|
824
824
|
}
|
|
825
825
|
|
|
826
826
|
scene.fire(
|
|
827
|
-
msgPrefix +
|
|
827
|
+
msgPrefix + ':showPolyline',
|
|
828
828
|
{
|
|
829
829
|
args: [
|
|
830
830
|
jsonInfo,
|
|
@@ -854,9 +854,9 @@ var EGovaGlobeMap = function (
|
|
|
854
854
|
if (scene == null) return;
|
|
855
855
|
// 移除监听
|
|
856
856
|
|
|
857
|
-
layerName = layerName ||
|
|
858
|
-
var clickBackName =
|
|
859
|
-
var mouseOverBackName =
|
|
857
|
+
layerName = layerName || 'district';
|
|
858
|
+
var clickBackName = 'showDistrictClick' + layerName;
|
|
859
|
+
var mouseOverBackName = 'showDistrictMouseMove' + layerName;
|
|
860
860
|
|
|
861
861
|
that.removeEventBind(clickBackName);
|
|
862
862
|
that.removeEventBind(mouseOverBackName);
|
|
@@ -878,7 +878,7 @@ var EGovaGlobeMap = function (
|
|
|
878
878
|
}
|
|
879
879
|
|
|
880
880
|
scene.fire(
|
|
881
|
-
msgPrefix +
|
|
881
|
+
msgPrefix + ':showDistrict',
|
|
882
882
|
{
|
|
883
883
|
args: [
|
|
884
884
|
jsonInfo,
|
|
@@ -899,7 +899,7 @@ var EGovaGlobeMap = function (
|
|
|
899
899
|
that.addEagleMap = function (options, containID) {
|
|
900
900
|
if (scene == null) return;
|
|
901
901
|
scene.fire(
|
|
902
|
-
msgPrefix +
|
|
902
|
+
msgPrefix + ':addEagleMap',
|
|
903
903
|
{ args: [options, containID] },
|
|
904
904
|
parentScene,
|
|
905
905
|
false
|
|
@@ -909,7 +909,7 @@ var EGovaGlobeMap = function (
|
|
|
909
909
|
that.eagleMapVisible = function (visible) {
|
|
910
910
|
if (scene == null) return;
|
|
911
911
|
scene.fire(
|
|
912
|
-
msgPrefix +
|
|
912
|
+
msgPrefix + ':eagleMapVisible',
|
|
913
913
|
{ args: [visible] },
|
|
914
914
|
parentScene,
|
|
915
915
|
false
|
|
@@ -927,7 +927,7 @@ var EGovaGlobeMap = function (
|
|
|
927
927
|
) {
|
|
928
928
|
if (scene == null) return;
|
|
929
929
|
scene.fire(
|
|
930
|
-
msgPrefix +
|
|
930
|
+
msgPrefix + ':computerBar',
|
|
931
931
|
{
|
|
932
932
|
args: [
|
|
933
933
|
jsonInfo,
|
|
@@ -947,7 +947,7 @@ var EGovaGlobeMap = function (
|
|
|
947
947
|
that.sceneSwitch = function (name, options) {
|
|
948
948
|
if (scene == null) return;
|
|
949
949
|
scene.fire(
|
|
950
|
-
msgPrefix +
|
|
950
|
+
msgPrefix + ':sceneSwitch',
|
|
951
951
|
{ args: [name, options] },
|
|
952
952
|
parentScene,
|
|
953
953
|
false
|
|
@@ -957,7 +957,7 @@ var EGovaGlobeMap = function (
|
|
|
957
957
|
that.showWater = function (waterJsonUrl, waterRoadJsonUrl, options) {
|
|
958
958
|
if (scene == null) return;
|
|
959
959
|
scene.fire(
|
|
960
|
-
msgPrefix +
|
|
960
|
+
msgPrefix + ':showWater',
|
|
961
961
|
{ args: [waterJsonUrl, waterRoadJsonUrl, options] },
|
|
962
962
|
parentScene,
|
|
963
963
|
false
|
|
@@ -967,7 +967,7 @@ var EGovaGlobeMap = function (
|
|
|
967
967
|
that.drawGeoJsonPolygon = function (options, layerName) {
|
|
968
968
|
if (scene == null) return;
|
|
969
969
|
that.fireEvent(
|
|
970
|
-
|
|
970
|
+
'drawGeoJsonPolygon',
|
|
971
971
|
{ args: [options, layerName] },
|
|
972
972
|
false
|
|
973
973
|
);
|
|
@@ -976,7 +976,7 @@ var EGovaGlobeMap = function (
|
|
|
976
976
|
that.drawGeoJsonPoint = function (options, layerName) {
|
|
977
977
|
if (scene == null) return;
|
|
978
978
|
that.fireEvent(
|
|
979
|
-
|
|
979
|
+
'drawGeoJsonPoint',
|
|
980
980
|
{ args: [options, layerName] },
|
|
981
981
|
false
|
|
982
982
|
);
|
|
@@ -992,7 +992,7 @@ var EGovaGlobeMap = function (
|
|
|
992
992
|
) {
|
|
993
993
|
if (scene == null) return;
|
|
994
994
|
scene.fire(
|
|
995
|
-
msgPrefix +
|
|
995
|
+
msgPrefix + ':showMultiRecPostion',
|
|
996
996
|
{ args: [jsonInfo, zoom, labelInfo, clear, zoomOptions, callback] },
|
|
997
997
|
parentScene,
|
|
998
998
|
false
|
|
@@ -1007,7 +1007,7 @@ var EGovaGlobeMap = function (
|
|
|
1007
1007
|
) {
|
|
1008
1008
|
if (scene == null) return;
|
|
1009
1009
|
scene.fire(
|
|
1010
|
-
msgPrefix +
|
|
1010
|
+
msgPrefix + ':showPolylineMovingGlow',
|
|
1011
1011
|
{ args: [jsonInfo, zoom, clear, zoomOptions] },
|
|
1012
1012
|
parentScene,
|
|
1013
1013
|
false
|
|
@@ -1017,7 +1017,7 @@ var EGovaGlobeMap = function (
|
|
|
1017
1017
|
that.setGradientStyle = function (obj, style) {
|
|
1018
1018
|
if (scene == null) return;
|
|
1019
1019
|
scene.fire(
|
|
1020
|
-
msgPrefix +
|
|
1020
|
+
msgPrefix + ':setGradientStyle',
|
|
1021
1021
|
{ args: [obj, style] },
|
|
1022
1022
|
parentScene,
|
|
1023
1023
|
false
|
|
@@ -1027,7 +1027,7 @@ var EGovaGlobeMap = function (
|
|
|
1027
1027
|
that.setBuildingColor = function (obj, keyFiled, valueColors) {
|
|
1028
1028
|
if (scene == null) return;
|
|
1029
1029
|
scene.fire(
|
|
1030
|
-
msgPrefix +
|
|
1030
|
+
msgPrefix + ':setBuildingColor',
|
|
1031
1031
|
{ args: [obj, keyFiled, valueColors] },
|
|
1032
1032
|
parentScene,
|
|
1033
1033
|
false
|
|
@@ -1048,7 +1048,7 @@ var EGovaGlobeMap = function (
|
|
|
1048
1048
|
// }
|
|
1049
1049
|
|
|
1050
1050
|
scene.fire(
|
|
1051
|
-
msgPrefix +
|
|
1051
|
+
msgPrefix + ':showHeatImage3D',
|
|
1052
1052
|
{ args: [info, zoom, clear, options] },
|
|
1053
1053
|
parentScene,
|
|
1054
1054
|
false
|
|
@@ -1058,7 +1058,7 @@ var EGovaGlobeMap = function (
|
|
|
1058
1058
|
that.setHeatmapOptions = function (options, layerName, id) {
|
|
1059
1059
|
if (scene == null) return;
|
|
1060
1060
|
scene.fire(
|
|
1061
|
-
msgPrefix +
|
|
1061
|
+
msgPrefix + ':setHeatmapOptions',
|
|
1062
1062
|
{ args: [options, layerName, id] },
|
|
1063
1063
|
parentScene,
|
|
1064
1064
|
false
|
|
@@ -1069,7 +1069,7 @@ var EGovaGlobeMap = function (
|
|
|
1069
1069
|
if (scene == null) return;
|
|
1070
1070
|
|
|
1071
1071
|
scene.fire(
|
|
1072
|
-
msgPrefix +
|
|
1072
|
+
msgPrefix + ':clearHeatImage3D',
|
|
1073
1073
|
{ args: [] },
|
|
1074
1074
|
parentScene,
|
|
1075
1075
|
false
|
|
@@ -1079,7 +1079,7 @@ var EGovaGlobeMap = function (
|
|
|
1079
1079
|
that.updateHeatRec = function (levelNum) {
|
|
1080
1080
|
if (scene == null) return;
|
|
1081
1081
|
scene.fire(
|
|
1082
|
-
msgPrefix +
|
|
1082
|
+
msgPrefix + ':updateHeatRec',
|
|
1083
1083
|
{ args: [levelNum] },
|
|
1084
1084
|
parentScene,
|
|
1085
1085
|
false
|
|
@@ -1089,7 +1089,7 @@ var EGovaGlobeMap = function (
|
|
|
1089
1089
|
that.cartographicToWindow = function (coord, callback) {
|
|
1090
1090
|
if (scene == null) return;
|
|
1091
1091
|
scene.fire(
|
|
1092
|
-
msgPrefix +
|
|
1092
|
+
msgPrefix + ':cartographicToWindow',
|
|
1093
1093
|
{ args: [coord, callback] },
|
|
1094
1094
|
parentScene,
|
|
1095
1095
|
false
|
|
@@ -1102,15 +1102,15 @@ var EGovaGlobeMap = function (
|
|
|
1102
1102
|
that.getModelClickMes = function (clickCallback) {
|
|
1103
1103
|
if (scene == null) return;
|
|
1104
1104
|
|
|
1105
|
-
that.removeEventBind(
|
|
1105
|
+
that.removeEventBind('getModelClickMesCallback');
|
|
1106
1106
|
if (clickCallback != undefined) {
|
|
1107
|
-
that.bindEvent(
|
|
1107
|
+
that.bindEvent('getModelClickMesCallback', function (evt) {
|
|
1108
1108
|
clickCallback(evt.args);
|
|
1109
1109
|
});
|
|
1110
1110
|
}
|
|
1111
1111
|
|
|
1112
1112
|
scene.fire(
|
|
1113
|
-
msgPrefix +
|
|
1113
|
+
msgPrefix + ':getModelClickMes',
|
|
1114
1114
|
{ args: [] },
|
|
1115
1115
|
parentScene,
|
|
1116
1116
|
false
|
|
@@ -1122,14 +1122,14 @@ var EGovaGlobeMap = function (
|
|
|
1122
1122
|
if (scene == null) return;
|
|
1123
1123
|
|
|
1124
1124
|
// 移除监听
|
|
1125
|
-
scene.remove(msgPrefix +
|
|
1125
|
+
scene.remove(msgPrefix + ':getMapExtentCallback', parentScene, false);
|
|
1126
1126
|
|
|
1127
1127
|
scene.on(
|
|
1128
|
-
msgPrefix +
|
|
1128
|
+
msgPrefix + ':getMapExtentCallback',
|
|
1129
1129
|
function (evt) {
|
|
1130
1130
|
// 移除监听
|
|
1131
1131
|
scene.remove(
|
|
1132
|
-
msgPrefix +
|
|
1132
|
+
msgPrefix + ':getMapExtentCallback',
|
|
1133
1133
|
parentScene,
|
|
1134
1134
|
false
|
|
1135
1135
|
);
|
|
@@ -1139,7 +1139,7 @@ var EGovaGlobeMap = function (
|
|
|
1139
1139
|
false
|
|
1140
1140
|
);
|
|
1141
1141
|
scene.fire(
|
|
1142
|
-
msgPrefix +
|
|
1142
|
+
msgPrefix + ':getMapExtent',
|
|
1143
1143
|
{ args: [] },
|
|
1144
1144
|
parentScene,
|
|
1145
1145
|
false
|
|
@@ -1152,7 +1152,7 @@ var EGovaGlobeMap = function (
|
|
|
1152
1152
|
duration = Number(duration);
|
|
1153
1153
|
rotate = Boolean(rotate);
|
|
1154
1154
|
that.fireEvent(
|
|
1155
|
-
|
|
1155
|
+
'zoomToExtent',
|
|
1156
1156
|
{
|
|
1157
1157
|
args: [
|
|
1158
1158
|
Number(minX),
|
|
@@ -1170,14 +1170,14 @@ var EGovaGlobeMap = function (
|
|
|
1170
1170
|
/**地表热力 */
|
|
1171
1171
|
that.addGlobeHeatMap = function (data, option, zoom) {
|
|
1172
1172
|
if (scene == null) return;
|
|
1173
|
-
that.fireEvent(
|
|
1173
|
+
that.fireEvent('addHeatMap', { args: [data, option, zoom] }, false);
|
|
1174
1174
|
};
|
|
1175
1175
|
|
|
1176
1176
|
/*清除地表热力*/
|
|
1177
1177
|
that.removeGlobeHeatMap = function () {
|
|
1178
1178
|
if (scene == null) return;
|
|
1179
1179
|
scene.fire(
|
|
1180
|
-
msgPrefix +
|
|
1180
|
+
msgPrefix + ':removeHeatMap',
|
|
1181
1181
|
{ args: [] },
|
|
1182
1182
|
parentScene,
|
|
1183
1183
|
false
|
|
@@ -1188,7 +1188,7 @@ var EGovaGlobeMap = function (
|
|
|
1188
1188
|
that.centerAndZoom = function (x, y, level, heading, picth, duration, opt) {
|
|
1189
1189
|
if (scene == null) return;
|
|
1190
1190
|
that.fireEvent(
|
|
1191
|
-
|
|
1191
|
+
'centerAndZoom',
|
|
1192
1192
|
{ args: [x, y, level, heading, picth, duration, opt] },
|
|
1193
1193
|
false
|
|
1194
1194
|
);
|
|
@@ -1198,7 +1198,7 @@ var EGovaGlobeMap = function (
|
|
|
1198
1198
|
that.zoomToLevel = function (level, duration) {
|
|
1199
1199
|
if (scene == null) return;
|
|
1200
1200
|
|
|
1201
|
-
that.fireEvent(
|
|
1201
|
+
that.fireEvent('zoomToLevel', { args: [level, duration] }, false);
|
|
1202
1202
|
};
|
|
1203
1203
|
|
|
1204
1204
|
/* 缩放到指定级别 */
|
|
@@ -1206,7 +1206,7 @@ var EGovaGlobeMap = function (
|
|
|
1206
1206
|
if (scene == null) return;
|
|
1207
1207
|
|
|
1208
1208
|
that.fireEvent(
|
|
1209
|
-
|
|
1209
|
+
'zoomByRegionCode',
|
|
1210
1210
|
{ args: [regionCode, options, callback] },
|
|
1211
1211
|
false
|
|
1212
1212
|
);
|
|
@@ -1216,7 +1216,7 @@ var EGovaGlobeMap = function (
|
|
|
1216
1216
|
that.rotateScene = function (heading, pitch, roll, duration, callback) {
|
|
1217
1217
|
if (scene == null) return;
|
|
1218
1218
|
that.fireEvent(
|
|
1219
|
-
|
|
1219
|
+
'rotateScene',
|
|
1220
1220
|
{ args: [heading, pitch, roll, duration, callback] },
|
|
1221
1221
|
false
|
|
1222
1222
|
);
|
|
@@ -1225,11 +1225,11 @@ var EGovaGlobeMap = function (
|
|
|
1225
1225
|
/* 清除指定图形 */
|
|
1226
1226
|
that.clearGraphic = function (id) {
|
|
1227
1227
|
if (scene == null) return;
|
|
1228
|
-
if (typeof id !=
|
|
1229
|
-
id = id.join(
|
|
1228
|
+
if (typeof id != 'string') {
|
|
1229
|
+
id = id.join(',');
|
|
1230
1230
|
}
|
|
1231
1231
|
scene.fire(
|
|
1232
|
-
msgPrefix +
|
|
1232
|
+
msgPrefix + ':clearGraphic',
|
|
1233
1233
|
{ args: [id] },
|
|
1234
1234
|
parentScene,
|
|
1235
1235
|
false
|
|
@@ -1240,7 +1240,7 @@ var EGovaGlobeMap = function (
|
|
|
1240
1240
|
that.clearAllGraphics = function (id) {
|
|
1241
1241
|
if (scene == null) return;
|
|
1242
1242
|
scene.fire(
|
|
1243
|
-
msgPrefix +
|
|
1243
|
+
msgPrefix + ':clearAllGraphics',
|
|
1244
1244
|
{ args: [] },
|
|
1245
1245
|
parentScene,
|
|
1246
1246
|
false
|
|
@@ -1254,7 +1254,7 @@ var EGovaGlobeMap = function (
|
|
|
1254
1254
|
if (scene == null) return;
|
|
1255
1255
|
|
|
1256
1256
|
scene.fire(
|
|
1257
|
-
msgPrefix +
|
|
1257
|
+
msgPrefix + ':clearAllDynamicGraphics',
|
|
1258
1258
|
{ args: [] },
|
|
1259
1259
|
parentScene,
|
|
1260
1260
|
false
|
|
@@ -1269,7 +1269,7 @@ var EGovaGlobeMap = function (
|
|
|
1269
1269
|
if (scene == null) return;
|
|
1270
1270
|
|
|
1271
1271
|
scene.fire(
|
|
1272
|
-
msgPrefix +
|
|
1272
|
+
msgPrefix + ':restoreInitConfig',
|
|
1273
1273
|
{ args: [] },
|
|
1274
1274
|
parentScene,
|
|
1275
1275
|
false
|
|
@@ -1283,7 +1283,7 @@ var EGovaGlobeMap = function (
|
|
|
1283
1283
|
if (scene == null) return;
|
|
1284
1284
|
|
|
1285
1285
|
scene.fire(
|
|
1286
|
-
msgPrefix +
|
|
1286
|
+
msgPrefix + ':clearLayer',
|
|
1287
1287
|
{ args: [name, callback] },
|
|
1288
1288
|
parentScene,
|
|
1289
1289
|
false
|
|
@@ -1297,7 +1297,7 @@ var EGovaGlobeMap = function (
|
|
|
1297
1297
|
if (scene == null) return;
|
|
1298
1298
|
|
|
1299
1299
|
scene.fire(
|
|
1300
|
-
msgPrefix +
|
|
1300
|
+
msgPrefix + ':clearAllLayer',
|
|
1301
1301
|
{ args: [skipNames] },
|
|
1302
1302
|
parentScene,
|
|
1303
1303
|
false
|
|
@@ -1311,13 +1311,13 @@ var EGovaGlobeMap = function (
|
|
|
1311
1311
|
if (scene == null) return;
|
|
1312
1312
|
|
|
1313
1313
|
// 移除监听
|
|
1314
|
-
that.removeEventBind(
|
|
1315
|
-
that.bindEvent(
|
|
1314
|
+
that.removeEventBind('getAllLayerCallback');
|
|
1315
|
+
that.bindEvent('getAllLayerCallback', function (evt) {
|
|
1316
1316
|
callback && callback(evt.args);
|
|
1317
1317
|
});
|
|
1318
1318
|
|
|
1319
1319
|
scene.fire(
|
|
1320
|
-
msgPrefix +
|
|
1320
|
+
msgPrefix + ':getAllLayer',
|
|
1321
1321
|
{ args: [] },
|
|
1322
1322
|
parentScene,
|
|
1323
1323
|
false
|
|
@@ -1331,7 +1331,7 @@ var EGovaGlobeMap = function (
|
|
|
1331
1331
|
if (scene == null) return;
|
|
1332
1332
|
|
|
1333
1333
|
scene.fire(
|
|
1334
|
-
msgPrefix +
|
|
1334
|
+
msgPrefix + ':toggleLayer',
|
|
1335
1335
|
{ args: [name] },
|
|
1336
1336
|
parentScene,
|
|
1337
1337
|
false
|
|
@@ -1345,7 +1345,7 @@ var EGovaGlobeMap = function (
|
|
|
1345
1345
|
if (scene == null) return;
|
|
1346
1346
|
|
|
1347
1347
|
scene.fire(
|
|
1348
|
-
msgPrefix +
|
|
1348
|
+
msgPrefix + ':showLayer',
|
|
1349
1349
|
{ args: [name] },
|
|
1350
1350
|
parentScene,
|
|
1351
1351
|
false
|
|
@@ -1359,7 +1359,7 @@ var EGovaGlobeMap = function (
|
|
|
1359
1359
|
if (scene == null) return;
|
|
1360
1360
|
|
|
1361
1361
|
scene.fire(
|
|
1362
|
-
msgPrefix +
|
|
1362
|
+
msgPrefix + ':hideLayer',
|
|
1363
1363
|
{ args: [name] },
|
|
1364
1364
|
parentScene,
|
|
1365
1365
|
false
|
|
@@ -1373,7 +1373,7 @@ var EGovaGlobeMap = function (
|
|
|
1373
1373
|
if (scene == null) return;
|
|
1374
1374
|
|
|
1375
1375
|
scene.fire(
|
|
1376
|
-
msgPrefix +
|
|
1376
|
+
msgPrefix + ':clearLayerElement',
|
|
1377
1377
|
{ args: [name, ids] },
|
|
1378
1378
|
parentScene,
|
|
1379
1379
|
false
|
|
@@ -1387,7 +1387,7 @@ var EGovaGlobeMap = function (
|
|
|
1387
1387
|
if (scene == null) return;
|
|
1388
1388
|
|
|
1389
1389
|
scene.fire(
|
|
1390
|
-
msgPrefix +
|
|
1390
|
+
msgPrefix + ':clickLayerElement',
|
|
1391
1391
|
{ args: [name, id] },
|
|
1392
1392
|
parentScene,
|
|
1393
1393
|
false
|
|
@@ -1401,7 +1401,7 @@ var EGovaGlobeMap = function (
|
|
|
1401
1401
|
if (scene == null) return;
|
|
1402
1402
|
|
|
1403
1403
|
scene.fire(
|
|
1404
|
-
msgPrefix +
|
|
1404
|
+
msgPrefix + ':flyToLayerElement',
|
|
1405
1405
|
{ args: [name, id, options] },
|
|
1406
1406
|
parentScene,
|
|
1407
1407
|
false
|
|
@@ -1416,7 +1416,7 @@ var EGovaGlobeMap = function (
|
|
|
1416
1416
|
if (scene == null) return;
|
|
1417
1417
|
|
|
1418
1418
|
scene.fire(
|
|
1419
|
-
msgPrefix +
|
|
1419
|
+
msgPrefix + ':setLayerVisiableLevel',
|
|
1420
1420
|
{ args: [name, beginLevel, endLevel] },
|
|
1421
1421
|
parentScene,
|
|
1422
1422
|
false
|
|
@@ -1426,14 +1426,14 @@ var EGovaGlobeMap = function (
|
|
|
1426
1426
|
that.getLayerVisiableLevel = function (name, callback) {
|
|
1427
1427
|
if (scene == null) return;
|
|
1428
1428
|
|
|
1429
|
-
that.removeEventBind(
|
|
1429
|
+
that.removeEventBind('getLayerVisiableLevelCallback');
|
|
1430
1430
|
if (callback != undefined) {
|
|
1431
|
-
that.bindEvent(
|
|
1431
|
+
that.bindEvent('getLayerVisiableLevelCallback', function (evt) {
|
|
1432
1432
|
callback(evt.args);
|
|
1433
1433
|
});
|
|
1434
1434
|
}
|
|
1435
1435
|
scene.fire(
|
|
1436
|
-
msgPrefix +
|
|
1436
|
+
msgPrefix + ':getLayerVisiableLevel',
|
|
1437
1437
|
{ args: [name] },
|
|
1438
1438
|
parentScene,
|
|
1439
1439
|
false
|
|
@@ -1448,7 +1448,7 @@ var EGovaGlobeMap = function (
|
|
|
1448
1448
|
if (scene == null) return;
|
|
1449
1449
|
|
|
1450
1450
|
scene.fire(
|
|
1451
|
-
msgPrefix +
|
|
1451
|
+
msgPrefix + ':setModelVisiableLevel',
|
|
1452
1452
|
{ args: [obj, beginLevel, endLevel] },
|
|
1453
1453
|
parentScene,
|
|
1454
1454
|
false
|
|
@@ -1462,7 +1462,7 @@ var EGovaGlobeMap = function (
|
|
|
1462
1462
|
if (scene == null) return;
|
|
1463
1463
|
|
|
1464
1464
|
scene.fire(
|
|
1465
|
-
msgPrefix +
|
|
1465
|
+
msgPrefix + ':buildRoad',
|
|
1466
1466
|
{ args: [jsonInfo, zoom, clear, zoomOptions] },
|
|
1467
1467
|
parentScene,
|
|
1468
1468
|
false
|
|
@@ -1484,9 +1484,9 @@ var EGovaGlobeMap = function (
|
|
|
1484
1484
|
if (scene == null) return;
|
|
1485
1485
|
// 移除监听
|
|
1486
1486
|
|
|
1487
|
-
layerName = layerName ||
|
|
1488
|
-
var clickBackName =
|
|
1489
|
-
var mouseOverBackName =
|
|
1487
|
+
layerName = layerName || 'bridge';
|
|
1488
|
+
var clickBackName = 'buildBridgeClick' + layerName;
|
|
1489
|
+
var mouseOverBackName = 'buildBridgeMouseMove' + layerName;
|
|
1490
1490
|
|
|
1491
1491
|
that.removeEventBind(clickBackName);
|
|
1492
1492
|
that.removeEventBind(mouseOverBackName);
|
|
@@ -1508,7 +1508,7 @@ var EGovaGlobeMap = function (
|
|
|
1508
1508
|
}
|
|
1509
1509
|
|
|
1510
1510
|
scene.fire(
|
|
1511
|
-
msgPrefix +
|
|
1511
|
+
msgPrefix + ':buildBridge',
|
|
1512
1512
|
{
|
|
1513
1513
|
args: [
|
|
1514
1514
|
jsonInfo,
|
|
@@ -1533,7 +1533,7 @@ var EGovaGlobeMap = function (
|
|
|
1533
1533
|
// 移除监听
|
|
1534
1534
|
|
|
1535
1535
|
scene.fire(
|
|
1536
|
-
msgPrefix +
|
|
1536
|
+
msgPrefix + ':drawPipe',
|
|
1537
1537
|
{ args: [jsonInfo, zoom, clear, options, layerName] },
|
|
1538
1538
|
parentScene,
|
|
1539
1539
|
false
|
|
@@ -1543,11 +1543,11 @@ var EGovaGlobeMap = function (
|
|
|
1543
1543
|
/*清除指定图层*/
|
|
1544
1544
|
that.clearGraphicLayerByID = function (id) {
|
|
1545
1545
|
if (scene == null) return;
|
|
1546
|
-
if (typeof id !=
|
|
1547
|
-
id = id.join(
|
|
1546
|
+
if (typeof id != 'string') {
|
|
1547
|
+
id = id.join(',');
|
|
1548
1548
|
}
|
|
1549
1549
|
scene.fire(
|
|
1550
|
-
msgPrefix +
|
|
1550
|
+
msgPrefix + ':clearGraphicLayerByID',
|
|
1551
1551
|
{ args: [id] },
|
|
1552
1552
|
parentScene,
|
|
1553
1553
|
false
|
|
@@ -1563,7 +1563,7 @@ var EGovaGlobeMap = function (
|
|
|
1563
1563
|
) {
|
|
1564
1564
|
if (scene == null) return;
|
|
1565
1565
|
scene.fire(
|
|
1566
|
-
msgPrefix +
|
|
1566
|
+
msgPrefix + ':drawWaveCircle',
|
|
1567
1567
|
{ args: [jsonInfo, styleOption, zoom, clear, layerName] },
|
|
1568
1568
|
false
|
|
1569
1569
|
);
|
|
@@ -1572,7 +1572,7 @@ var EGovaGlobeMap = function (
|
|
|
1572
1572
|
that.getPartLayerTree = function (callback) {
|
|
1573
1573
|
if (scene == null) return;
|
|
1574
1574
|
scene.fire(
|
|
1575
|
-
msgPrefix +
|
|
1575
|
+
msgPrefix + ':getPartLayerTree',
|
|
1576
1576
|
{ args: [callback] },
|
|
1577
1577
|
false
|
|
1578
1578
|
);
|
|
@@ -1581,7 +1581,7 @@ var EGovaGlobeMap = function (
|
|
|
1581
1581
|
that.showGlobePartLayer = function (layerNames, beginLevel, endLevel) {
|
|
1582
1582
|
if (scene == null) return;
|
|
1583
1583
|
scene.fire(
|
|
1584
|
-
msgPrefix +
|
|
1584
|
+
msgPrefix + ':showGlobePartLayer',
|
|
1585
1585
|
{ args: [layerNames, beginLevel, endLevel] },
|
|
1586
1586
|
false
|
|
1587
1587
|
);
|
|
@@ -1598,7 +1598,7 @@ var EGovaGlobeMap = function (
|
|
|
1598
1598
|
) {
|
|
1599
1599
|
if (scene == null) return;
|
|
1600
1600
|
scene.fire(
|
|
1601
|
-
msgPrefix +
|
|
1601
|
+
msgPrefix + ':getPartStatisticsJsonInfo',
|
|
1602
1602
|
{
|
|
1603
1603
|
args: [
|
|
1604
1604
|
usageId,
|
|
@@ -1623,15 +1623,15 @@ var EGovaGlobeMap = function (
|
|
|
1623
1623
|
labelInfo
|
|
1624
1624
|
) {
|
|
1625
1625
|
if (scene == null) return;
|
|
1626
|
-
that.removeEventBind(
|
|
1626
|
+
that.removeEventBind('showRecListDistributionCallback');
|
|
1627
1627
|
if (clickCallback != undefined) {
|
|
1628
|
-
that.bindEvent(
|
|
1628
|
+
that.bindEvent('showRecListDistributionCallback', function (evt) {
|
|
1629
1629
|
clickCallback(evt.args);
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
1632
1632
|
if (that.globeLoaded)
|
|
1633
1633
|
scene.fire(
|
|
1634
|
-
msgPrefix +
|
|
1634
|
+
msgPrefix + ':showRecListDistribution',
|
|
1635
1635
|
{ args: [jsonInfo, zoom, labelInfo] },
|
|
1636
1636
|
parentScene,
|
|
1637
1637
|
false
|
|
@@ -1646,7 +1646,7 @@ var EGovaGlobeMap = function (
|
|
|
1646
1646
|
) {
|
|
1647
1647
|
if (scene == null) return;
|
|
1648
1648
|
that.fireEvent(
|
|
1649
|
-
|
|
1649
|
+
'showPatrolCurrentPosition',
|
|
1650
1650
|
{ args: [jsonInfo, zoom, clear, highLightType] },
|
|
1651
1651
|
false
|
|
1652
1652
|
);
|
|
@@ -1665,8 +1665,8 @@ var EGovaGlobeMap = function (
|
|
|
1665
1665
|
) {
|
|
1666
1666
|
if (scene == null) return;
|
|
1667
1667
|
// 移除监听
|
|
1668
|
-
var clickBackName =
|
|
1669
|
-
var mouseOverBackName =
|
|
1668
|
+
var clickBackName = 'showMultiObjectCurrentPositionClick';
|
|
1669
|
+
var mouseOverBackName = 'showMultiObjectCurrentPositionMouseover';
|
|
1670
1670
|
|
|
1671
1671
|
if (tagName) {
|
|
1672
1672
|
clickBackName += tagName;
|
|
@@ -1693,7 +1693,7 @@ var EGovaGlobeMap = function (
|
|
|
1693
1693
|
}
|
|
1694
1694
|
|
|
1695
1695
|
scene.fire(
|
|
1696
|
-
msgPrefix +
|
|
1696
|
+
msgPrefix + ':showMultiObjectCurrentPosition',
|
|
1697
1697
|
{
|
|
1698
1698
|
args: [
|
|
1699
1699
|
jsonInfo,
|
|
@@ -1726,7 +1726,7 @@ var EGovaGlobeMap = function (
|
|
|
1726
1726
|
if (scene == null) return;
|
|
1727
1727
|
|
|
1728
1728
|
// 移除监听
|
|
1729
|
-
that.removeEventBind(
|
|
1729
|
+
that.removeEventBind('createInnerHtmlCallback' + tagName);
|
|
1730
1730
|
var args = Array.prototype.slice.call(arguments);
|
|
1731
1731
|
if (arguments[arguments.length - 1] instanceof Function) {
|
|
1732
1732
|
callback = arguments[arguments.length - 1];
|
|
@@ -1734,12 +1734,12 @@ var EGovaGlobeMap = function (
|
|
|
1734
1734
|
}
|
|
1735
1735
|
|
|
1736
1736
|
if (callback != undefined) {
|
|
1737
|
-
that.bindEvent(
|
|
1737
|
+
that.bindEvent('createInnerHtmlCallback' + tagName, function (evt) {
|
|
1738
1738
|
callback(evt.args);
|
|
1739
1739
|
});
|
|
1740
1740
|
}
|
|
1741
1741
|
scene.fire(
|
|
1742
|
-
msgPrefix +
|
|
1742
|
+
msgPrefix + ':createInnerHtml',
|
|
1743
1743
|
{ args: args },
|
|
1744
1744
|
parentScene,
|
|
1745
1745
|
false
|
|
@@ -1765,7 +1765,7 @@ var EGovaGlobeMap = function (
|
|
|
1765
1765
|
if (context.gisServerURL) {
|
|
1766
1766
|
var options = {};
|
|
1767
1767
|
var serviceUrl =
|
|
1768
|
-
context.gisServerURL +
|
|
1768
|
+
context.gisServerURL + '/home/gis/patrol/getobjecttrace.htm';
|
|
1769
1769
|
options.traceService = serviceUrl;
|
|
1770
1770
|
options.dateTime = dateTime;
|
|
1771
1771
|
options.queryCondition = queryCondition;
|
|
@@ -1777,14 +1777,14 @@ var EGovaGlobeMap = function (
|
|
|
1777
1777
|
options.closeCallback = closeCallback;
|
|
1778
1778
|
options.traceDigCallback = traceDigCallback;
|
|
1779
1779
|
scene.fire(
|
|
1780
|
-
msgPrefix +
|
|
1780
|
+
msgPrefix + ':showObjectTrace',
|
|
1781
1781
|
{
|
|
1782
1782
|
args: [objectID, symbolType, options],
|
|
1783
1783
|
},
|
|
1784
1784
|
parentScene
|
|
1785
1785
|
);
|
|
1786
1786
|
} else {
|
|
1787
|
-
console.error(
|
|
1787
|
+
console.error('没有配置二维GIS服务端地址');
|
|
1788
1788
|
}
|
|
1789
1789
|
};
|
|
1790
1790
|
|
|
@@ -1800,7 +1800,7 @@ var EGovaGlobeMap = function (
|
|
|
1800
1800
|
if (scene == null) return;
|
|
1801
1801
|
|
|
1802
1802
|
scene.fire(
|
|
1803
|
-
msgPrefix +
|
|
1803
|
+
msgPrefix + ':addObjectTrace',
|
|
1804
1804
|
{
|
|
1805
1805
|
args: [
|
|
1806
1806
|
jsonInfo,
|
|
@@ -1820,7 +1820,7 @@ var EGovaGlobeMap = function (
|
|
|
1820
1820
|
that.setTraceOptions = function (options) {
|
|
1821
1821
|
if (scene == null) return;
|
|
1822
1822
|
scene.fire(
|
|
1823
|
-
msgPrefix +
|
|
1823
|
+
msgPrefix + ':setTraceOptions',
|
|
1824
1824
|
{ args: [options] },
|
|
1825
1825
|
parentScene,
|
|
1826
1826
|
false
|
|
@@ -1832,7 +1832,7 @@ var EGovaGlobeMap = function (
|
|
|
1832
1832
|
*/
|
|
1833
1833
|
that.movingRadar = function (jsonInfo, zoom, clear, options, layerName) {
|
|
1834
1834
|
scene.fire(
|
|
1835
|
-
msgPrefix +
|
|
1835
|
+
msgPrefix + ':movingRadar',
|
|
1836
1836
|
{ args: [jsonInfo, zoom, clear, options, layerName] },
|
|
1837
1837
|
parentScene
|
|
1838
1838
|
);
|
|
@@ -1851,7 +1851,7 @@ var EGovaGlobeMap = function (
|
|
|
1851
1851
|
moveEnable
|
|
1852
1852
|
) {
|
|
1853
1853
|
scene.fire(
|
|
1854
|
-
msgPrefix +
|
|
1854
|
+
msgPrefix + ':movingBillboard',
|
|
1855
1855
|
{
|
|
1856
1856
|
args: [
|
|
1857
1857
|
jsonInfo,
|
|
@@ -1871,7 +1871,7 @@ var EGovaGlobeMap = function (
|
|
|
1871
1871
|
that.circleRadarEffect = function (info, zoom, clear, options, layerName) {
|
|
1872
1872
|
if (scene == null) return;
|
|
1873
1873
|
scene.fire(
|
|
1874
|
-
msgPrefix +
|
|
1874
|
+
msgPrefix + ':circleRadarEffect',
|
|
1875
1875
|
{ args: [info, zoom, clear, options, layerName] },
|
|
1876
1876
|
parentScene,
|
|
1877
1877
|
false
|
|
@@ -1882,7 +1882,7 @@ var EGovaGlobeMap = function (
|
|
|
1882
1882
|
that.lightRay = function (jsonInfo, zoom, clear, options, layerName) {
|
|
1883
1883
|
if (scene == null) return;
|
|
1884
1884
|
scene.fire(
|
|
1885
|
-
msgPrefix +
|
|
1885
|
+
msgPrefix + ':lightRay',
|
|
1886
1886
|
{ args: [jsonInfo, zoom, clear, options, layerName] },
|
|
1887
1887
|
parentScene,
|
|
1888
1888
|
false
|
|
@@ -1899,7 +1899,7 @@ var EGovaGlobeMap = function (
|
|
|
1899
1899
|
) {
|
|
1900
1900
|
if (scene == null) return;
|
|
1901
1901
|
scene.fire(
|
|
1902
|
-
msgPrefix +
|
|
1902
|
+
msgPrefix + ':getbuildBypolygon',
|
|
1903
1903
|
{ args: [info, color, zoom, clear, options, layerName] },
|
|
1904
1904
|
parentScene,
|
|
1905
1905
|
false
|
|
@@ -1916,7 +1916,7 @@ var EGovaGlobeMap = function (
|
|
|
1916
1916
|
) {
|
|
1917
1917
|
if (scene == null) return;
|
|
1918
1918
|
scene.fire(
|
|
1919
|
-
msgPrefix +
|
|
1919
|
+
msgPrefix + ':showPolylineMoveMap',
|
|
1920
1920
|
{ args: [info, layerName, clear, zoom, options] },
|
|
1921
1921
|
parentScene,
|
|
1922
1922
|
false
|
|
@@ -1928,7 +1928,7 @@ var EGovaGlobeMap = function (
|
|
|
1928
1928
|
if (scene == null) return;
|
|
1929
1929
|
|
|
1930
1930
|
scene.fire(
|
|
1931
|
-
msgPrefix +
|
|
1931
|
+
msgPrefix + ':beginProjection',
|
|
1932
1932
|
{ args: [options] },
|
|
1933
1933
|
parentScene,
|
|
1934
1934
|
false
|
|
@@ -1946,7 +1946,7 @@ var EGovaGlobeMap = function (
|
|
|
1946
1946
|
) {
|
|
1947
1947
|
if (scene == null) return;
|
|
1948
1948
|
scene.fire(
|
|
1949
|
-
msgPrefix +
|
|
1949
|
+
msgPrefix + ':showMultiRoadText',
|
|
1950
1950
|
{
|
|
1951
1951
|
args: [
|
|
1952
1952
|
jsonInfo,
|
|
@@ -1965,7 +1965,7 @@ var EGovaGlobeMap = function (
|
|
|
1965
1965
|
that.limitGlobeRange = function (extent) {
|
|
1966
1966
|
if (scene == null) return;
|
|
1967
1967
|
scene.fire(
|
|
1968
|
-
msgPrefix +
|
|
1968
|
+
msgPrefix + ':limitGlobeRange',
|
|
1969
1969
|
{ args: [extent] },
|
|
1970
1970
|
parentScene,
|
|
1971
1971
|
false
|
|
@@ -1983,10 +1983,10 @@ var EGovaGlobeMap = function (
|
|
|
1983
1983
|
) {
|
|
1984
1984
|
if (scene == null) return;
|
|
1985
1985
|
|
|
1986
|
-
layerName = layerName ||
|
|
1986
|
+
layerName = layerName || 'chart';
|
|
1987
1987
|
|
|
1988
|
-
var clickBackName =
|
|
1989
|
-
var mouseOverBackName =
|
|
1988
|
+
var clickBackName = 'addChartClick' + layerName;
|
|
1989
|
+
var mouseOverBackName = 'addChartMouseMove' + layerName;
|
|
1990
1990
|
|
|
1991
1991
|
that.removeEventBind(clickBackName);
|
|
1992
1992
|
that.removeEventBind(mouseOverBackName);
|
|
@@ -2009,7 +2009,7 @@ var EGovaGlobeMap = function (
|
|
|
2009
2009
|
}
|
|
2010
2010
|
|
|
2011
2011
|
scene.fire(
|
|
2012
|
-
msgPrefix +
|
|
2012
|
+
msgPrefix + ':addChart',
|
|
2013
2013
|
{
|
|
2014
2014
|
args: [
|
|
2015
2015
|
jsonInfo,
|
|
@@ -2032,7 +2032,7 @@ var EGovaGlobeMap = function (
|
|
|
2032
2032
|
that.queryModelInfo = function (callback, type) {
|
|
2033
2033
|
if (scene == null) return;
|
|
2034
2034
|
scene.fire(
|
|
2035
|
-
msgPrefix +
|
|
2035
|
+
msgPrefix + ':queryModelClick',
|
|
2036
2036
|
{ args: [callback, type] },
|
|
2037
2037
|
parentScene,
|
|
2038
2038
|
false
|
|
@@ -2044,7 +2044,7 @@ var EGovaGlobeMap = function (
|
|
|
2044
2044
|
that.removeChart = function () {
|
|
2045
2045
|
if (scene == null) return;
|
|
2046
2046
|
scene.fire(
|
|
2047
|
-
msgPrefix +
|
|
2047
|
+
msgPrefix + ':removeChart',
|
|
2048
2048
|
{ args: [] },
|
|
2049
2049
|
parentScene,
|
|
2050
2050
|
false
|
|
@@ -2054,7 +2054,7 @@ var EGovaGlobeMap = function (
|
|
|
2054
2054
|
that.flyToPoint = function (x, y, height) {
|
|
2055
2055
|
if (scene == null) return;
|
|
2056
2056
|
scene.fire(
|
|
2057
|
-
msgPrefix +
|
|
2057
|
+
msgPrefix + ':flyToPoint',
|
|
2058
2058
|
{ args: [x, y, height] },
|
|
2059
2059
|
parentScene,
|
|
2060
2060
|
false
|
|
@@ -2064,13 +2064,13 @@ var EGovaGlobeMap = function (
|
|
|
2064
2064
|
that.fullExtent = function () {
|
|
2065
2065
|
if (scene == null) return;
|
|
2066
2066
|
|
|
2067
|
-
scene.fire(msgPrefix +
|
|
2067
|
+
scene.fire(msgPrefix + ':fullExtent', { args: [] }, parentScene, false);
|
|
2068
2068
|
};
|
|
2069
2069
|
|
|
2070
2070
|
that.goUnderGround = function (height) {
|
|
2071
2071
|
if (scene == null) return;
|
|
2072
2072
|
scene.fire(
|
|
2073
|
-
msgPrefix +
|
|
2073
|
+
msgPrefix + ':goUnderGround',
|
|
2074
2074
|
{ args: [height] },
|
|
2075
2075
|
parentScene,
|
|
2076
2076
|
false
|
|
@@ -2081,7 +2081,7 @@ var EGovaGlobeMap = function (
|
|
|
2081
2081
|
that.addVideoAlarm = function (coordX, coorY, successFunc, hitCallback) {
|
|
2082
2082
|
if (scene == null) return;
|
|
2083
2083
|
scene.fire(
|
|
2084
|
-
msgPrefix +
|
|
2084
|
+
msgPrefix + ':addVideoAlarm',
|
|
2085
2085
|
{ args: [coordX, coorY, successFunc, hitCallback] },
|
|
2086
2086
|
parentScene
|
|
2087
2087
|
);
|
|
@@ -2091,7 +2091,7 @@ var EGovaGlobeMap = function (
|
|
|
2091
2091
|
that.createPanelInfo = function (entity, successFunc) {
|
|
2092
2092
|
if (scene == null) return;
|
|
2093
2093
|
scene.fire(
|
|
2094
|
-
msgPrefix +
|
|
2094
|
+
msgPrefix + ':createPanelInfo',
|
|
2095
2095
|
{ args: [entity, successFunc] },
|
|
2096
2096
|
parentScene
|
|
2097
2097
|
);
|
|
@@ -2101,7 +2101,7 @@ var EGovaGlobeMap = function (
|
|
|
2101
2101
|
that.createAnimateCar = function (objectID, successFunc) {
|
|
2102
2102
|
if (scene == null) return;
|
|
2103
2103
|
scene.fire(
|
|
2104
|
-
msgPrefix +
|
|
2104
|
+
msgPrefix + ':createAnimateCar',
|
|
2105
2105
|
{ args: [objectID, successFunc] },
|
|
2106
2106
|
parentScene
|
|
2107
2107
|
);
|
|
@@ -2111,7 +2111,7 @@ var EGovaGlobeMap = function (
|
|
|
2111
2111
|
that.removeVideoAlarm = function (id) {
|
|
2112
2112
|
if (scene == null) return;
|
|
2113
2113
|
scene.fire(
|
|
2114
|
-
msgPrefix +
|
|
2114
|
+
msgPrefix + ':removeVideoAlarm',
|
|
2115
2115
|
{ args: [id] },
|
|
2116
2116
|
parentScene
|
|
2117
2117
|
);
|
|
@@ -2119,13 +2119,13 @@ var EGovaGlobeMap = function (
|
|
|
2119
2119
|
/*地图上标注返回坐标值*/
|
|
2120
2120
|
that.pointSelect = function (symbolType, mapZoom2Point, clickCallback) {
|
|
2121
2121
|
if (scene == null) return;
|
|
2122
|
-
that.removeEventBind(
|
|
2122
|
+
that.removeEventBind('pointSelectCallback');
|
|
2123
2123
|
if (clickCallback != undefined) {
|
|
2124
|
-
that.bindEvent(
|
|
2125
|
-
that.removeEventBind(
|
|
2124
|
+
that.bindEvent('pointSelectCallback', function (position) {
|
|
2125
|
+
that.removeEventBind('pointSelectCallback');
|
|
2126
2126
|
var resultPosition = [
|
|
2127
2127
|
position.args[0].longitude +
|
|
2128
|
-
|
|
2128
|
+
',' +
|
|
2129
2129
|
position.args[0].latitude,
|
|
2130
2130
|
];
|
|
2131
2131
|
resultPosition.push(position.args[0]);
|
|
@@ -2133,7 +2133,7 @@ var EGovaGlobeMap = function (
|
|
|
2133
2133
|
});
|
|
2134
2134
|
}
|
|
2135
2135
|
scene.fire(
|
|
2136
|
-
msgPrefix +
|
|
2136
|
+
msgPrefix + ':pointSelect',
|
|
2137
2137
|
{ args: [symbolType, mapZoom2Point] },
|
|
2138
2138
|
parentScene,
|
|
2139
2139
|
false
|
|
@@ -2158,7 +2158,7 @@ var EGovaGlobeMap = function (
|
|
|
2158
2158
|
) {
|
|
2159
2159
|
if (scene == null) return;
|
|
2160
2160
|
scene.fire(
|
|
2161
|
-
msgPrefix +
|
|
2161
|
+
msgPrefix + ':locateFeatureByCoords',
|
|
2162
2162
|
{
|
|
2163
2163
|
args: [
|
|
2164
2164
|
geometries,
|
|
@@ -2183,15 +2183,15 @@ var EGovaGlobeMap = function (
|
|
|
2183
2183
|
/* 要素查询 */
|
|
2184
2184
|
that.queryFeature = function (params, callback) {
|
|
2185
2185
|
// 移除监听
|
|
2186
|
-
that.removeEventBind(
|
|
2186
|
+
that.removeEventBind('queryFeatureCallback');
|
|
2187
2187
|
|
|
2188
2188
|
if (callback != undefined) {
|
|
2189
|
-
that.bindEvent(
|
|
2189
|
+
that.bindEvent('queryFeatureCallback', function (evt) {
|
|
2190
2190
|
callback(evt.args);
|
|
2191
2191
|
});
|
|
2192
2192
|
}
|
|
2193
2193
|
scene.fire(
|
|
2194
|
-
msgPrefix +
|
|
2194
|
+
msgPrefix + ':queryFeature',
|
|
2195
2195
|
{
|
|
2196
2196
|
args: [
|
|
2197
2197
|
params.layerID,
|
|
@@ -2214,7 +2214,7 @@ var EGovaGlobeMap = function (
|
|
|
2214
2214
|
if (graphic.geometry instanceof Array) {
|
|
2215
2215
|
graphic.type = graphic.type || graphic.geometry[0].type;
|
|
2216
2216
|
scene.fire(
|
|
2217
|
-
msgPrefix +
|
|
2217
|
+
msgPrefix + ':locateFeatureByCoords',
|
|
2218
2218
|
{
|
|
2219
2219
|
args: [
|
|
2220
2220
|
graphic.geometry,
|
|
@@ -2234,7 +2234,7 @@ var EGovaGlobeMap = function (
|
|
|
2234
2234
|
} else {
|
|
2235
2235
|
graphic.type = graphic.type || graphic.geometry.type;
|
|
2236
2236
|
scene.fire(
|
|
2237
|
-
msgPrefix +
|
|
2237
|
+
msgPrefix + ':locateFeatureByCoords',
|
|
2238
2238
|
{
|
|
2239
2239
|
args: [
|
|
2240
2240
|
[graphic.geometry],
|
|
@@ -2248,9 +2248,9 @@ var EGovaGlobeMap = function (
|
|
|
2248
2248
|
parentScene
|
|
2249
2249
|
);
|
|
2250
2250
|
}
|
|
2251
|
-
that.removeEventBind(
|
|
2251
|
+
that.removeEventBind('locateFeatureByIDsCallback');
|
|
2252
2252
|
if (clickCallback != undefined) {
|
|
2253
|
-
that.bindEvent(
|
|
2253
|
+
that.bindEvent('locateFeatureByIDsCallback', function (evt) {
|
|
2254
2254
|
clickCallback(evt.args);
|
|
2255
2255
|
});
|
|
2256
2256
|
}
|
|
@@ -2274,7 +2274,7 @@ var EGovaGlobeMap = function (
|
|
|
2274
2274
|
projecttypeid: projectTypeID,
|
|
2275
2275
|
};
|
|
2276
2276
|
scene.fire(
|
|
2277
|
-
msgPrefix +
|
|
2277
|
+
msgPrefix + ':markMap',
|
|
2278
2278
|
{ args: [eventInfo, layerID, clickCallback] },
|
|
2279
2279
|
parentScene,
|
|
2280
2280
|
false
|
|
@@ -2284,7 +2284,7 @@ var EGovaGlobeMap = function (
|
|
|
2284
2284
|
that.markMapXY = function (event, Callback) {
|
|
2285
2285
|
if (scene == null) return;
|
|
2286
2286
|
scene.fire(
|
|
2287
|
-
msgPrefix +
|
|
2287
|
+
msgPrefix + ':markMapXY',
|
|
2288
2288
|
{ args: [event, Callback] },
|
|
2289
2289
|
parentScene,
|
|
2290
2290
|
false
|
|
@@ -2294,7 +2294,7 @@ var EGovaGlobeMap = function (
|
|
|
2294
2294
|
that.removeMarkMapMouseHandler = function () {
|
|
2295
2295
|
if (scene == null) return;
|
|
2296
2296
|
scene.fire(
|
|
2297
|
-
msgPrefix +
|
|
2297
|
+
msgPrefix + ':removeMarkMapMouseHandler',
|
|
2298
2298
|
{ args: [] },
|
|
2299
2299
|
parentScene,
|
|
2300
2300
|
false
|
|
@@ -2311,7 +2311,7 @@ var EGovaGlobeMap = function (
|
|
|
2311
2311
|
that.drawGeometry = function (type, style, clear, callback, option) {
|
|
2312
2312
|
if (scene == null) return;
|
|
2313
2313
|
scene.fire(
|
|
2314
|
-
msgPrefix +
|
|
2314
|
+
msgPrefix + ':drawGeometry',
|
|
2315
2315
|
{ args: [type, style, clear, callback, option] },
|
|
2316
2316
|
parentScene,
|
|
2317
2317
|
false
|
|
@@ -2320,7 +2320,7 @@ var EGovaGlobeMap = function (
|
|
|
2320
2320
|
that.showUserDrawGeometry = function (show, id) {
|
|
2321
2321
|
if (scene == null) return;
|
|
2322
2322
|
scene.fire(
|
|
2323
|
-
msgPrefix +
|
|
2323
|
+
msgPrefix + ':showUserDrawGeometry',
|
|
2324
2324
|
{ args: [show, id] },
|
|
2325
2325
|
parentScene,
|
|
2326
2326
|
false
|
|
@@ -2335,7 +2335,7 @@ var EGovaGlobeMap = function (
|
|
|
2335
2335
|
var clear = params[2] || true;
|
|
2336
2336
|
var callback = addCallback;
|
|
2337
2337
|
scene.fire(
|
|
2338
|
-
msgPrefix +
|
|
2338
|
+
msgPrefix + ':drawGeometry',
|
|
2339
2339
|
{ args: [type, style, clear, callback] },
|
|
2340
2340
|
parentScene,
|
|
2341
2341
|
false
|
|
@@ -2359,27 +2359,27 @@ var EGovaGlobeMap = function (
|
|
|
2359
2359
|
|
|
2360
2360
|
var defaultSymbolUrl = Array.isArray(jsonInfo)
|
|
2361
2361
|
? jsonInfo[0].symbolUrl
|
|
2362
|
-
:
|
|
2362
|
+
: 'numImage.png';
|
|
2363
2363
|
|
|
2364
|
-
var hasCustomProperties = infoStyle.hasOwnProperty(
|
|
2364
|
+
var hasCustomProperties = infoStyle.hasOwnProperty('customProperties');
|
|
2365
2365
|
|
|
2366
2366
|
var defaultClusterImageInfo = {
|
|
2367
2367
|
//自定义聚类图标。如果设置的话,要自己调"textStyle"以适应自己的"symbolUrl"
|
|
2368
2368
|
|
|
2369
2369
|
symbolUrl: defaultSymbolUrl,
|
|
2370
2370
|
|
|
2371
|
-
horizontalOrigin:
|
|
2371
|
+
horizontalOrigin: 'center',
|
|
2372
2372
|
|
|
2373
|
-
verticalOrigin:
|
|
2373
|
+
verticalOrigin: 'bottom',
|
|
2374
2374
|
|
|
2375
2375
|
cssStyle: {
|
|
2376
2376
|
borderRadius: 500, //设置的很大话,就会形成半圆角
|
|
2377
2377
|
|
|
2378
|
-
fillColor:
|
|
2378
|
+
fillColor: 'rgba(27,32,43,0.7)', //圆角矩形的颜色
|
|
2379
2379
|
|
|
2380
2380
|
borderLineWidth: 3, //圆角矩形的边框宽度
|
|
2381
2381
|
|
|
2382
|
-
borderLineColor:
|
|
2382
|
+
borderLineColor: 'rgba(230,230,230,0.9)', //圆角矩形的边框颜色
|
|
2383
2383
|
|
|
2384
2384
|
paddingX: 15, //圆角矩形内边框padding(主要是为了让文字与边框有一定距离)
|
|
2385
2385
|
|
|
@@ -2389,11 +2389,11 @@ var EGovaGlobeMap = function (
|
|
|
2389
2389
|
},
|
|
2390
2390
|
|
|
2391
2391
|
textStyle: {
|
|
2392
|
-
font:
|
|
2392
|
+
font: '60px Helvetica',
|
|
2393
2393
|
|
|
2394
|
-
fillColor:
|
|
2394
|
+
fillColor: 'rgba(250,250,250,1.0)',
|
|
2395
2395
|
|
|
2396
|
-
outlineColor:
|
|
2396
|
+
outlineColor: 'black',
|
|
2397
2397
|
|
|
2398
2398
|
outlineWidth: 1.0,
|
|
2399
2399
|
|
|
@@ -2413,7 +2413,7 @@ var EGovaGlobeMap = function (
|
|
|
2413
2413
|
clusterStyle:
|
|
2414
2414
|
(hasCustomProperties &&
|
|
2415
2415
|
infoStyle.customProperties.clusterStyle) ||
|
|
2416
|
-
|
|
2416
|
+
'clusterByGrid',
|
|
2417
2417
|
|
|
2418
2418
|
zoom: zoom,
|
|
2419
2419
|
|
|
@@ -2432,7 +2432,7 @@ var EGovaGlobeMap = function (
|
|
|
2432
2432
|
|
|
2433
2433
|
layerName: tagName,
|
|
2434
2434
|
|
|
2435
|
-
style:
|
|
2435
|
+
style: 'default',
|
|
2436
2436
|
|
|
2437
2437
|
nearFarScalar: [8000, 1.0, 10000, 0.6],
|
|
2438
2438
|
|
|
@@ -2463,14 +2463,14 @@ var EGovaGlobeMap = function (
|
|
|
2463
2463
|
var option = data.options;
|
|
2464
2464
|
if (option && option.addClusterWithAni) {
|
|
2465
2465
|
scene.fire(
|
|
2466
|
-
msgPrefix +
|
|
2466
|
+
msgPrefix + ':addClusterWithAni',
|
|
2467
2467
|
{ args: [dataInfo, option] },
|
|
2468
2468
|
parentScene,
|
|
2469
2469
|
false
|
|
2470
2470
|
);
|
|
2471
2471
|
} else {
|
|
2472
2472
|
scene.fire(
|
|
2473
|
-
msgPrefix +
|
|
2473
|
+
msgPrefix + ':addClusterLayer',
|
|
2474
2474
|
{ args: [dataInfo, option] },
|
|
2475
2475
|
parentScene,
|
|
2476
2476
|
false
|
|
@@ -2481,7 +2481,7 @@ var EGovaGlobeMap = function (
|
|
|
2481
2481
|
that.getSelectedLayerinfo = function (name, callback) {
|
|
2482
2482
|
if (scene == null) return;
|
|
2483
2483
|
scene.fire(
|
|
2484
|
-
msgPrefix +
|
|
2484
|
+
msgPrefix + ':getSelectedLayerinfo',
|
|
2485
2485
|
{ args: [name, callback] },
|
|
2486
2486
|
parentScene,
|
|
2487
2487
|
false
|
|
@@ -2493,7 +2493,7 @@ var EGovaGlobeMap = function (
|
|
|
2493
2493
|
if (scene == null) return;
|
|
2494
2494
|
|
|
2495
2495
|
scene.fire(
|
|
2496
|
-
msgPrefix +
|
|
2496
|
+
msgPrefix + ':threeModelManage',
|
|
2497
2497
|
{ args: [layerName, type, options, others] },
|
|
2498
2498
|
parentScene,
|
|
2499
2499
|
false
|
|
@@ -2505,7 +2505,7 @@ var EGovaGlobeMap = function (
|
|
|
2505
2505
|
if (scene == null) return;
|
|
2506
2506
|
|
|
2507
2507
|
scene.fire(
|
|
2508
|
-
msgPrefix +
|
|
2508
|
+
msgPrefix + ':fireWorkSystem',
|
|
2509
2509
|
{ args: [options] },
|
|
2510
2510
|
parentScene,
|
|
2511
2511
|
false
|
|
@@ -2517,7 +2517,7 @@ var EGovaGlobeMap = function (
|
|
|
2517
2517
|
if (scene == null) return;
|
|
2518
2518
|
|
|
2519
2519
|
scene.fire(
|
|
2520
|
-
msgPrefix +
|
|
2520
|
+
msgPrefix + ':setFireWorkVisible',
|
|
2521
2521
|
{ args: [visible] },
|
|
2522
2522
|
parentScene,
|
|
2523
2523
|
false
|
|
@@ -2529,7 +2529,7 @@ var EGovaGlobeMap = function (
|
|
|
2529
2529
|
if (scene == null) return;
|
|
2530
2530
|
|
|
2531
2531
|
scene.fire(
|
|
2532
|
-
msgPrefix +
|
|
2532
|
+
msgPrefix + ':undergroundMode_on',
|
|
2533
2533
|
{ args: [alpha] },
|
|
2534
2534
|
parentScene,
|
|
2535
2535
|
false
|
|
@@ -2541,7 +2541,7 @@ var EGovaGlobeMap = function (
|
|
|
2541
2541
|
if (scene == null) return;
|
|
2542
2542
|
|
|
2543
2543
|
scene.fire(
|
|
2544
|
-
msgPrefix +
|
|
2544
|
+
msgPrefix + ':undergroundMode_off',
|
|
2545
2545
|
{ args: [] },
|
|
2546
2546
|
parentScene,
|
|
2547
2547
|
false
|
|
@@ -2552,7 +2552,7 @@ var EGovaGlobeMap = function (
|
|
|
2552
2552
|
that.Plat2lonLat = function (positions, callback) {
|
|
2553
2553
|
if (scene == null) return;
|
|
2554
2554
|
scene.fire(
|
|
2555
|
-
msgPrefix +
|
|
2555
|
+
msgPrefix + ':Plat2lonLat',
|
|
2556
2556
|
{ args: [positions, callback] },
|
|
2557
2557
|
parentScene,
|
|
2558
2558
|
false
|
|
@@ -2567,7 +2567,7 @@ var EGovaGlobeMap = function (
|
|
|
2567
2567
|
callback: callback,
|
|
2568
2568
|
};
|
|
2569
2569
|
scene.fire(
|
|
2570
|
-
msgPrefix +
|
|
2570
|
+
msgPrefix + ':digSurface_dig',
|
|
2571
2571
|
{ args: [options] },
|
|
2572
2572
|
parentScene,
|
|
2573
2573
|
false
|
|
@@ -2578,7 +2578,7 @@ var EGovaGlobeMap = function (
|
|
|
2578
2578
|
that.removeDigsuface = function () {
|
|
2579
2579
|
if (scene == null) return;
|
|
2580
2580
|
scene.fire(
|
|
2581
|
-
msgPrefix +
|
|
2581
|
+
msgPrefix + ':digSurface_remove',
|
|
2582
2582
|
{ args: [] },
|
|
2583
2583
|
parentScene,
|
|
2584
2584
|
false
|
|
@@ -2587,7 +2587,7 @@ var EGovaGlobeMap = function (
|
|
|
2587
2587
|
that.clearDrawGeometry = function () {
|
|
2588
2588
|
if (scene == null) return;
|
|
2589
2589
|
scene.fire(
|
|
2590
|
-
msgPrefix +
|
|
2590
|
+
msgPrefix + ':cleardrawGeometry',
|
|
2591
2591
|
{ args: [] },
|
|
2592
2592
|
parentScene,
|
|
2593
2593
|
false
|
|
@@ -2598,7 +2598,7 @@ var EGovaGlobeMap = function (
|
|
|
2598
2598
|
that.addPickHandler = function (callback) {
|
|
2599
2599
|
if (scene == null) return;
|
|
2600
2600
|
scene.fire(
|
|
2601
|
-
msgPrefix +
|
|
2601
|
+
msgPrefix + ':addPickHandler',
|
|
2602
2602
|
{ args: [callback] },
|
|
2603
2603
|
parentScene,
|
|
2604
2604
|
false
|
|
@@ -2608,7 +2608,7 @@ var EGovaGlobeMap = function (
|
|
|
2608
2608
|
that.addRightClickHandler = function (callback) {
|
|
2609
2609
|
if (scene == null) return;
|
|
2610
2610
|
scene.fire(
|
|
2611
|
-
msgPrefix +
|
|
2611
|
+
msgPrefix + ':addRightClickHandler',
|
|
2612
2612
|
{ args: [callback] },
|
|
2613
2613
|
parentScene,
|
|
2614
2614
|
false
|
|
@@ -2618,7 +2618,7 @@ var EGovaGlobeMap = function (
|
|
|
2618
2618
|
that.pickModel = function (position, callback) {
|
|
2619
2619
|
if (scene == null) return;
|
|
2620
2620
|
scene.fire(
|
|
2621
|
-
msgPrefix +
|
|
2621
|
+
msgPrefix + ':pickModel',
|
|
2622
2622
|
{ args: [callback] },
|
|
2623
2623
|
parentScene,
|
|
2624
2624
|
false
|
|
@@ -2626,16 +2626,16 @@ var EGovaGlobeMap = function (
|
|
|
2626
2626
|
};
|
|
2627
2627
|
that.show2dMode = function () {
|
|
2628
2628
|
if (scene == null) return;
|
|
2629
|
-
scene.fire(msgPrefix +
|
|
2629
|
+
scene.fire(msgPrefix + ':show2dMode', { args: [] }, parentScene, false);
|
|
2630
2630
|
};
|
|
2631
2631
|
that.show3dMode = function () {
|
|
2632
2632
|
if (scene == null) return;
|
|
2633
|
-
scene.fire(msgPrefix +
|
|
2633
|
+
scene.fire(msgPrefix + ':show3dMode', { args: [] }, parentScene, false);
|
|
2634
2634
|
};
|
|
2635
2635
|
that.getSysLayerTree = function (callback) {
|
|
2636
2636
|
if (scene == null) return;
|
|
2637
2637
|
scene.fire(
|
|
2638
|
-
msgPrefix +
|
|
2638
|
+
msgPrefix + ':getSysLayerTree',
|
|
2639
2639
|
{ args: [callback] },
|
|
2640
2640
|
parentScene,
|
|
2641
2641
|
false
|
|
@@ -2644,7 +2644,7 @@ var EGovaGlobeMap = function (
|
|
|
2644
2644
|
that.show2_5dMode = function () {
|
|
2645
2645
|
if (scene == null) return;
|
|
2646
2646
|
scene.fire(
|
|
2647
|
-
msgPrefix +
|
|
2647
|
+
msgPrefix + ':show2_5dMode',
|
|
2648
2648
|
{ args: [] },
|
|
2649
2649
|
parentScene,
|
|
2650
2650
|
false
|
|
@@ -2662,7 +2662,7 @@ var EGovaGlobeMap = function (
|
|
|
2662
2662
|
) {
|
|
2663
2663
|
if (scene == null) return;
|
|
2664
2664
|
scene.fire(
|
|
2665
|
-
msgPrefix +
|
|
2665
|
+
msgPrefix + ':showWall',
|
|
2666
2666
|
{
|
|
2667
2667
|
args: [
|
|
2668
2668
|
jsonInfo,
|
|
@@ -2707,7 +2707,7 @@ var EGovaGlobeMap = function (
|
|
|
2707
2707
|
keyField = keyField || scene.layerUsageConfig[layerID].keyFieldName;
|
|
2708
2708
|
}
|
|
2709
2709
|
scene.fire(
|
|
2710
|
-
msgPrefix +
|
|
2710
|
+
msgPrefix + ':locateFeatureByIDs',
|
|
2711
2711
|
{
|
|
2712
2712
|
args: [
|
|
2713
2713
|
layerID,
|
|
@@ -2758,7 +2758,7 @@ var EGovaGlobeMap = function (
|
|
|
2758
2758
|
scene.layerUsageConfig[layerID].labelFieldName;
|
|
2759
2759
|
}
|
|
2760
2760
|
scene.fire(
|
|
2761
|
-
msgPrefix +
|
|
2761
|
+
msgPrefix + ':locateRegionByIDs',
|
|
2762
2762
|
{
|
|
2763
2763
|
args: [
|
|
2764
2764
|
layerID,
|
|
@@ -2791,7 +2791,7 @@ var EGovaGlobeMap = function (
|
|
|
2791
2791
|
) {
|
|
2792
2792
|
if (scene == null) return;
|
|
2793
2793
|
scene.fire(
|
|
2794
|
-
msgPrefix +
|
|
2794
|
+
msgPrefix + ':drawGeoJsonGeometry',
|
|
2795
2795
|
{
|
|
2796
2796
|
args: [
|
|
2797
2797
|
jsonInfos,
|
|
@@ -2812,7 +2812,7 @@ var EGovaGlobeMap = function (
|
|
|
2812
2812
|
if (scene == null) return;
|
|
2813
2813
|
|
|
2814
2814
|
scene.fire(
|
|
2815
|
-
msgPrefix +
|
|
2815
|
+
msgPrefix + ':pathPlan',
|
|
2816
2816
|
{ args: [origin, destination, callBack] },
|
|
2817
2817
|
parentScene,
|
|
2818
2818
|
false
|
|
@@ -2822,7 +2822,7 @@ var EGovaGlobeMap = function (
|
|
|
2822
2822
|
that.getRoutePlanning = function (origin, destination, options, callback) {
|
|
2823
2823
|
if (scene == null) return;
|
|
2824
2824
|
scene.fire(
|
|
2825
|
-
msgPrefix +
|
|
2825
|
+
msgPrefix + ':getRoutePlanning',
|
|
2826
2826
|
{ args: [origin, destination, options, callback] },
|
|
2827
2827
|
parentScene,
|
|
2828
2828
|
false
|
|
@@ -2838,7 +2838,7 @@ var EGovaGlobeMap = function (
|
|
|
2838
2838
|
) {
|
|
2839
2839
|
if (scene == null) return;
|
|
2840
2840
|
// 移除监听
|
|
2841
|
-
var clickBackName =
|
|
2841
|
+
var clickBackName = 'startMonomerQueryClick' + layerName;
|
|
2842
2842
|
|
|
2843
2843
|
that.removeEventBind(clickBackName);
|
|
2844
2844
|
var clickEnable = false;
|
|
@@ -2851,7 +2851,7 @@ var EGovaGlobeMap = function (
|
|
|
2851
2851
|
}
|
|
2852
2852
|
|
|
2853
2853
|
scene.fire(
|
|
2854
|
-
msgPrefix +
|
|
2854
|
+
msgPrefix + ':startMonomerQuery',
|
|
2855
2855
|
{ args: [type, clear, options, layerName, clickEnable] },
|
|
2856
2856
|
parentScene,
|
|
2857
2857
|
false
|
|
@@ -2867,7 +2867,7 @@ var EGovaGlobeMap = function (
|
|
|
2867
2867
|
) {
|
|
2868
2868
|
if (scene == null) return;
|
|
2869
2869
|
scene.fire(
|
|
2870
|
-
msgPrefix +
|
|
2870
|
+
msgPrefix + ':superMonomerQuery',
|
|
2871
2871
|
{ args: [type, clear, options, layerName, clickEnable] },
|
|
2872
2872
|
parentScene,
|
|
2873
2873
|
false
|
|
@@ -2879,7 +2879,7 @@ var EGovaGlobeMap = function (
|
|
|
2879
2879
|
if (scene == null) return;
|
|
2880
2880
|
|
|
2881
2881
|
scene.fire(
|
|
2882
|
-
msgPrefix +
|
|
2882
|
+
msgPrefix + ':setS3MOperation',
|
|
2883
2883
|
{ args: [type, LayerName, options] },
|
|
2884
2884
|
parentScene,
|
|
2885
2885
|
false
|
|
@@ -2896,7 +2896,7 @@ var EGovaGlobeMap = function (
|
|
|
2896
2896
|
) {
|
|
2897
2897
|
if (scene == null) return;
|
|
2898
2898
|
scene.fire(
|
|
2899
|
-
msgPrefix +
|
|
2899
|
+
msgPrefix + ':createMonomerClamp',
|
|
2900
2900
|
{
|
|
2901
2901
|
args: [
|
|
2902
2902
|
jsonInfo,
|
|
@@ -2915,7 +2915,7 @@ var EGovaGlobeMap = function (
|
|
|
2915
2915
|
that.getPGlist = function (queryParam, queryCallBack) {
|
|
2916
2916
|
if (scene == null) return;
|
|
2917
2917
|
scene.fire(
|
|
2918
|
-
msgPrefix +
|
|
2918
|
+
msgPrefix + ':getPGlist',
|
|
2919
2919
|
{ args: [queryParam, queryCallBack] },
|
|
2920
2920
|
parentScene,
|
|
2921
2921
|
false
|
|
@@ -2927,15 +2927,15 @@ var EGovaGlobeMap = function (
|
|
|
2927
2927
|
return;
|
|
2928
2928
|
}
|
|
2929
2929
|
|
|
2930
|
-
that.removeEventBind(
|
|
2930
|
+
that.removeEventBind('enablePickGradientObj');
|
|
2931
2931
|
if (callback != undefined) {
|
|
2932
|
-
that.bindEvent(
|
|
2932
|
+
that.bindEvent('enablePickGradientObj', function (evt) {
|
|
2933
2933
|
callback(evt.args);
|
|
2934
2934
|
});
|
|
2935
2935
|
}
|
|
2936
2936
|
|
|
2937
2937
|
scene.fire(
|
|
2938
|
-
msgPrefix +
|
|
2938
|
+
msgPrefix + ':enablePickGradientObj',
|
|
2939
2939
|
{ args: [] },
|
|
2940
2940
|
parentScene,
|
|
2941
2941
|
false
|
|
@@ -2945,7 +2945,7 @@ var EGovaGlobeMap = function (
|
|
|
2945
2945
|
that.disablePickGradientObj = function () {
|
|
2946
2946
|
if (scene == null) return;
|
|
2947
2947
|
scene.fire(
|
|
2948
|
-
msgPrefix +
|
|
2948
|
+
msgPrefix + ':disablePickGradientObj',
|
|
2949
2949
|
{ args: [] },
|
|
2950
2950
|
parentScene,
|
|
2951
2951
|
false
|
|
@@ -2961,7 +2961,7 @@ var EGovaGlobeMap = function (
|
|
|
2961
2961
|
) {
|
|
2962
2962
|
if (scene == null) return;
|
|
2963
2963
|
scene.fire(
|
|
2964
|
-
msgPrefix +
|
|
2964
|
+
msgPrefix + ':modifyAttributes',
|
|
2965
2965
|
{ args: [layerName, objID, newProperties, options, autoRevert] },
|
|
2966
2966
|
parentScene,
|
|
2967
2967
|
false
|
|
@@ -2975,7 +2975,7 @@ var EGovaGlobeMap = function (
|
|
|
2975
2975
|
) {
|
|
2976
2976
|
if (scene == null) return;
|
|
2977
2977
|
scene.fire(
|
|
2978
|
-
msgPrefix +
|
|
2978
|
+
msgPrefix + ':focusOnDistrict',
|
|
2979
2979
|
{ args: [config, positions, modelName, hideLayerNames] },
|
|
2980
2980
|
parentScene,
|
|
2981
2981
|
false
|
|
@@ -2984,7 +2984,7 @@ var EGovaGlobeMap = function (
|
|
|
2984
2984
|
that.showLaserWall = function (coordinatesData, layerName, options) {
|
|
2985
2985
|
if (scene == null) return;
|
|
2986
2986
|
scene.fire(
|
|
2987
|
-
msgPrefix +
|
|
2987
|
+
msgPrefix + ':showLaserWall',
|
|
2988
2988
|
{ args: [coordinatesData, layerName, options] },
|
|
2989
2989
|
parentScene,
|
|
2990
2990
|
false
|
|
@@ -2999,7 +2999,7 @@ var EGovaGlobeMap = function (
|
|
|
2999
2999
|
) {
|
|
3000
3000
|
if (scene == null) return;
|
|
3001
3001
|
scene.fire(
|
|
3002
|
-
msgPrefix +
|
|
3002
|
+
msgPrefix + ':PipeLineOperation',
|
|
3003
3003
|
{ args: [layerName, operateType, zoom, clear, options] },
|
|
3004
3004
|
parentScene,
|
|
3005
3005
|
false
|
|
@@ -3008,7 +3008,7 @@ var EGovaGlobeMap = function (
|
|
|
3008
3008
|
that.setCameraConfig = function (options) {
|
|
3009
3009
|
if (scene == null) return;
|
|
3010
3010
|
scene.fire(
|
|
3011
|
-
msgPrefix +
|
|
3011
|
+
msgPrefix + ':setCameraConfig',
|
|
3012
3012
|
{ args: [options] },
|
|
3013
3013
|
parentScene,
|
|
3014
3014
|
false
|
|
@@ -3017,7 +3017,7 @@ var EGovaGlobeMap = function (
|
|
|
3017
3017
|
that.setFireEffect = function (options, zoom, clear, layerName) {
|
|
3018
3018
|
if (scene == null) return;
|
|
3019
3019
|
scene.fire(
|
|
3020
|
-
msgPrefix +
|
|
3020
|
+
msgPrefix + ':setFireEffect',
|
|
3021
3021
|
{ args: [options, zoom, clear, layerName] },
|
|
3022
3022
|
parentScene,
|
|
3023
3023
|
false
|
|
@@ -3026,7 +3026,7 @@ var EGovaGlobeMap = function (
|
|
|
3026
3026
|
that.drawPoints = function (layerName, positions, options) {
|
|
3027
3027
|
if (scene == null) return;
|
|
3028
3028
|
scene.fire(
|
|
3029
|
-
msgPrefix +
|
|
3029
|
+
msgPrefix + ':drawPoints',
|
|
3030
3030
|
{ args: [layerName, positions, options] },
|
|
3031
3031
|
parentScene,
|
|
3032
3032
|
false
|
|
@@ -3035,7 +3035,7 @@ var EGovaGlobeMap = function (
|
|
|
3035
3035
|
that.traceOperation = function (posArr, options) {
|
|
3036
3036
|
if (scene == null) return;
|
|
3037
3037
|
scene.fire(
|
|
3038
|
-
msgPrefix +
|
|
3038
|
+
msgPrefix + ':traceOperation',
|
|
3039
3039
|
{ args: [posArr, options] },
|
|
3040
3040
|
parentScene,
|
|
3041
3041
|
false
|
|
@@ -3044,7 +3044,7 @@ var EGovaGlobeMap = function (
|
|
|
3044
3044
|
that.regionOperation = function (options, data) {
|
|
3045
3045
|
if (scene == null) return;
|
|
3046
3046
|
scene.fire(
|
|
3047
|
-
msgPrefix +
|
|
3047
|
+
msgPrefix + ':regionOperation',
|
|
3048
3048
|
{ args: [options, data] },
|
|
3049
3049
|
parentScene,
|
|
3050
3050
|
false
|
|
@@ -3053,7 +3053,7 @@ var EGovaGlobeMap = function (
|
|
|
3053
3053
|
that.cancelHighlightedRegion = function (layerName) {
|
|
3054
3054
|
if (scene == null) return;
|
|
3055
3055
|
scene.fire(
|
|
3056
|
-
msgPrefix +
|
|
3056
|
+
msgPrefix + ':cancelHighlightedPrimitive',
|
|
3057
3057
|
{ args: [layerName] },
|
|
3058
3058
|
parentScene,
|
|
3059
3059
|
false
|
|
@@ -3062,7 +3062,7 @@ var EGovaGlobeMap = function (
|
|
|
3062
3062
|
that.activeLayer = function (layerName, options, filter) {
|
|
3063
3063
|
if (scene == null) return;
|
|
3064
3064
|
scene.fire(
|
|
3065
|
-
msgPrefix +
|
|
3065
|
+
msgPrefix + ':activeLayer',
|
|
3066
3066
|
{ args: [layerName, options, filter] },
|
|
3067
3067
|
parentScene,
|
|
3068
3068
|
false
|
|
@@ -3071,7 +3071,7 @@ var EGovaGlobeMap = function (
|
|
|
3071
3071
|
that.networkCloud = function (options, positions) {
|
|
3072
3072
|
if (scene == null) return;
|
|
3073
3073
|
scene.fire(
|
|
3074
|
-
msgPrefix +
|
|
3074
|
+
msgPrefix + ':networkCloud',
|
|
3075
3075
|
{ args: [options, positions] },
|
|
3076
3076
|
parentScene,
|
|
3077
3077
|
false
|
|
@@ -3080,7 +3080,7 @@ var EGovaGlobeMap = function (
|
|
|
3080
3080
|
that.clearNetworkCloud = function (layerNames) {
|
|
3081
3081
|
if (scene == null) return;
|
|
3082
3082
|
scene.fire(
|
|
3083
|
-
msgPrefix +
|
|
3083
|
+
msgPrefix + ':clearNetworkCloud',
|
|
3084
3084
|
{ args: [layerNames] },
|
|
3085
3085
|
parentScene,
|
|
3086
3086
|
false
|
|
@@ -3089,7 +3089,7 @@ var EGovaGlobeMap = function (
|
|
|
3089
3089
|
that.lineOperation = function (options, data) {
|
|
3090
3090
|
if (scene == null) return;
|
|
3091
3091
|
scene.fire(
|
|
3092
|
-
msgPrefix +
|
|
3092
|
+
msgPrefix + ':lineOperation',
|
|
3093
3093
|
{ args: [options, data] },
|
|
3094
3094
|
parentScene,
|
|
3095
3095
|
false
|
|
@@ -3098,12 +3098,12 @@ var EGovaGlobeMap = function (
|
|
|
3098
3098
|
that.getMainSubTypeTree = function (params, callback) {
|
|
3099
3099
|
if (scene == null) return;
|
|
3100
3100
|
var cb = function (type, data) {
|
|
3101
|
-
if (callback && type ==
|
|
3101
|
+
if (callback && type == 'getMainSubTypeTreeCallback') {
|
|
3102
3102
|
callback(data);
|
|
3103
3103
|
}
|
|
3104
3104
|
};
|
|
3105
3105
|
scene.fire(
|
|
3106
|
-
msgPrefix +
|
|
3106
|
+
msgPrefix + ':getMainSubTypeTree',
|
|
3107
3107
|
{ args: [params, cb] },
|
|
3108
3108
|
parentScene,
|
|
3109
3109
|
false
|
|
@@ -3112,12 +3112,12 @@ var EGovaGlobeMap = function (
|
|
|
3112
3112
|
that.getRegion = function (params, callback) {
|
|
3113
3113
|
if (scene == null) return;
|
|
3114
3114
|
var cb = function (type, data) {
|
|
3115
|
-
if (callback && type ==
|
|
3115
|
+
if (callback && type == 'getRegionCallback') {
|
|
3116
3116
|
callback(data);
|
|
3117
3117
|
}
|
|
3118
3118
|
};
|
|
3119
3119
|
scene.fire(
|
|
3120
|
-
msgPrefix +
|
|
3120
|
+
msgPrefix + ':getRegion',
|
|
3121
3121
|
{ args: [params, cb] },
|
|
3122
3122
|
parentScene,
|
|
3123
3123
|
false
|
|
@@ -3126,7 +3126,7 @@ var EGovaGlobeMap = function (
|
|
|
3126
3126
|
that.getMapConfig = function (key, callback) {
|
|
3127
3127
|
if (scene == null) return;
|
|
3128
3128
|
scene.fire(
|
|
3129
|
-
msgPrefix +
|
|
3129
|
+
msgPrefix + ':getMapConfig',
|
|
3130
3130
|
{ args: [key, callback] },
|
|
3131
3131
|
parentScene,
|
|
3132
3132
|
false
|
|
@@ -3135,7 +3135,7 @@ var EGovaGlobeMap = function (
|
|
|
3135
3135
|
that.addCIMMap = function (options) {
|
|
3136
3136
|
if (scene == null) return;
|
|
3137
3137
|
scene.fire(
|
|
3138
|
-
msgPrefix +
|
|
3138
|
+
msgPrefix + ':addCIMMap',
|
|
3139
3139
|
{ args: [options] },
|
|
3140
3140
|
parentScene,
|
|
3141
3141
|
false
|
|
@@ -3144,7 +3144,7 @@ var EGovaGlobeMap = function (
|
|
|
3144
3144
|
that.addCIMModel = function (options) {
|
|
3145
3145
|
if (scene == null) return;
|
|
3146
3146
|
scene.fire(
|
|
3147
|
-
msgPrefix +
|
|
3147
|
+
msgPrefix + ':addCIMModel',
|
|
3148
3148
|
{ args: [options] },
|
|
3149
3149
|
parentScene,
|
|
3150
3150
|
false
|
|
@@ -3153,7 +3153,7 @@ var EGovaGlobeMap = function (
|
|
|
3153
3153
|
that.setLayerVisible = function (options) {
|
|
3154
3154
|
if (scene == null) return;
|
|
3155
3155
|
scene.fire(
|
|
3156
|
-
msgPrefix +
|
|
3156
|
+
msgPrefix + ':setLayerVisible',
|
|
3157
3157
|
{ args: [options] },
|
|
3158
3158
|
parentScene,
|
|
3159
3159
|
false
|
|
@@ -3162,7 +3162,7 @@ var EGovaGlobeMap = function (
|
|
|
3162
3162
|
that.flyToLayer = function (options) {
|
|
3163
3163
|
if (scene == null) return;
|
|
3164
3164
|
scene.fire(
|
|
3165
|
-
msgPrefix +
|
|
3165
|
+
msgPrefix + ':flyToLayer',
|
|
3166
3166
|
{ args: [options] },
|
|
3167
3167
|
parentScene,
|
|
3168
3168
|
false
|
|
@@ -3171,7 +3171,7 @@ var EGovaGlobeMap = function (
|
|
|
3171
3171
|
that.controlCamera = function (options) {
|
|
3172
3172
|
if (scene == null) return;
|
|
3173
3173
|
scene.fire(
|
|
3174
|
-
msgPrefix +
|
|
3174
|
+
msgPrefix + ':controlCamera',
|
|
3175
3175
|
{ args: [options] },
|
|
3176
3176
|
parentScene,
|
|
3177
3177
|
false
|
|
@@ -3179,12 +3179,12 @@ var EGovaGlobeMap = function (
|
|
|
3179
3179
|
};
|
|
3180
3180
|
that.zoomIn = function () {
|
|
3181
3181
|
if (scene == null) return;
|
|
3182
|
-
scene.fire(msgPrefix +
|
|
3182
|
+
scene.fire(msgPrefix + ':zoomIn', { args: [] }, parentScene, false);
|
|
3183
3183
|
};
|
|
3184
3184
|
that.zoomOut = function (options) {
|
|
3185
3185
|
if (scene == null) return;
|
|
3186
3186
|
scene.fire(
|
|
3187
|
-
msgPrefix +
|
|
3187
|
+
msgPrefix + ':zoomOut',
|
|
3188
3188
|
{ args: [options] },
|
|
3189
3189
|
parentScene,
|
|
3190
3190
|
false
|
|
@@ -3193,7 +3193,7 @@ var EGovaGlobeMap = function (
|
|
|
3193
3193
|
that.measureDistance = function (options) {
|
|
3194
3194
|
if (scene == null) return;
|
|
3195
3195
|
scene.fire(
|
|
3196
|
-
msgPrefix +
|
|
3196
|
+
msgPrefix + ':measureDistance',
|
|
3197
3197
|
{ args: [options] },
|
|
3198
3198
|
parentScene,
|
|
3199
3199
|
false
|
|
@@ -3202,7 +3202,7 @@ var EGovaGlobeMap = function (
|
|
|
3202
3202
|
that.measureArea = function (options) {
|
|
3203
3203
|
if (scene == null) return;
|
|
3204
3204
|
scene.fire(
|
|
3205
|
-
msgPrefix +
|
|
3205
|
+
msgPrefix + ':measureArea',
|
|
3206
3206
|
{ args: [options] },
|
|
3207
3207
|
parentScene,
|
|
3208
3208
|
false
|
|
@@ -3211,7 +3211,7 @@ var EGovaGlobeMap = function (
|
|
|
3211
3211
|
that.measureHeight = function (options) {
|
|
3212
3212
|
if (scene == null) return;
|
|
3213
3213
|
scene.fire(
|
|
3214
|
-
msgPrefix +
|
|
3214
|
+
msgPrefix + ':measureHeight',
|
|
3215
3215
|
{ args: [options] },
|
|
3216
3216
|
parentScene,
|
|
3217
3217
|
false
|
|
@@ -3220,7 +3220,7 @@ var EGovaGlobeMap = function (
|
|
|
3220
3220
|
that.onUndergroundModel = function (alpha, distance) {
|
|
3221
3221
|
if (scene == null) return;
|
|
3222
3222
|
scene.fire(
|
|
3223
|
-
msgPrefix +
|
|
3223
|
+
msgPrefix + ':onUndergroundModel',
|
|
3224
3224
|
{ args: [alpha, distance] },
|
|
3225
3225
|
parentScene,
|
|
3226
3226
|
false
|
|
@@ -3229,7 +3229,7 @@ var EGovaGlobeMap = function (
|
|
|
3229
3229
|
that.offUndergroundModel = function () {
|
|
3230
3230
|
if (scene == null) return;
|
|
3231
3231
|
scene.fire(
|
|
3232
|
-
msgPrefix +
|
|
3232
|
+
msgPrefix + ':offUndergroundModel',
|
|
3233
3233
|
{ args: [] },
|
|
3234
3234
|
parentScene,
|
|
3235
3235
|
false
|
|
@@ -3238,7 +3238,7 @@ var EGovaGlobeMap = function (
|
|
|
3238
3238
|
that.addFlag = function (options) {
|
|
3239
3239
|
if (scene == null) return;
|
|
3240
3240
|
scene.fire(
|
|
3241
|
-
msgPrefix +
|
|
3241
|
+
msgPrefix + ':addFlag',
|
|
3242
3242
|
{ args: [options] },
|
|
3243
3243
|
parentScene,
|
|
3244
3244
|
false
|
|
@@ -3247,7 +3247,7 @@ var EGovaGlobeMap = function (
|
|
|
3247
3247
|
that.getPointInfo = function (options) {
|
|
3248
3248
|
if (scene == null) return;
|
|
3249
3249
|
scene.fire(
|
|
3250
|
-
msgPrefix +
|
|
3250
|
+
msgPrefix + ':getPointInfo',
|
|
3251
3251
|
{ args: [options] },
|
|
3252
3252
|
parentScene,
|
|
3253
3253
|
false
|
|
@@ -3257,7 +3257,7 @@ var EGovaGlobeMap = function (
|
|
|
3257
3257
|
that.addClusterLayerCIM = function (dataInfo, option) {
|
|
3258
3258
|
if (scene == null) return;
|
|
3259
3259
|
scene.fire(
|
|
3260
|
-
msgPrefix +
|
|
3260
|
+
msgPrefix + ':addClusterLayer',
|
|
3261
3261
|
{ args: [dataInfo, option] },
|
|
3262
3262
|
parentScene,
|
|
3263
3263
|
false
|
|
@@ -3267,7 +3267,7 @@ var EGovaGlobeMap = function (
|
|
|
3267
3267
|
that.startViewer = function (options) {
|
|
3268
3268
|
if (scene == null) return;
|
|
3269
3269
|
scene.fire(
|
|
3270
|
-
msgPrefix +
|
|
3270
|
+
msgPrefix + ':startViewer',
|
|
3271
3271
|
{ args: [options] },
|
|
3272
3272
|
parentScene,
|
|
3273
3273
|
false
|
|
@@ -3276,7 +3276,7 @@ var EGovaGlobeMap = function (
|
|
|
3276
3276
|
that.removeViewer = function () {
|
|
3277
3277
|
if (scene == null) return;
|
|
3278
3278
|
scene.fire(
|
|
3279
|
-
msgPrefix +
|
|
3279
|
+
msgPrefix + ':removeViewer',
|
|
3280
3280
|
{ args: [] },
|
|
3281
3281
|
parentScene,
|
|
3282
3282
|
false
|
|
@@ -3285,7 +3285,7 @@ var EGovaGlobeMap = function (
|
|
|
3285
3285
|
that.setViewerOptions = function (options) {
|
|
3286
3286
|
if (scene == null) return;
|
|
3287
3287
|
scene.fire(
|
|
3288
|
-
msgPrefix +
|
|
3288
|
+
msgPrefix + ':setViewerOptions',
|
|
3289
3289
|
{ args: [options] },
|
|
3290
3290
|
parentScene,
|
|
3291
3291
|
false
|
|
@@ -3294,7 +3294,7 @@ var EGovaGlobeMap = function (
|
|
|
3294
3294
|
that.showSkyLine = function (options) {
|
|
3295
3295
|
if (scene == null) return;
|
|
3296
3296
|
scene.fire(
|
|
3297
|
-
msgPrefix +
|
|
3297
|
+
msgPrefix + ':showSkyLine',
|
|
3298
3298
|
{ args: [options] },
|
|
3299
3299
|
parentScene,
|
|
3300
3300
|
false
|
|
@@ -3303,7 +3303,7 @@ var EGovaGlobeMap = function (
|
|
|
3303
3303
|
that.clearSkyLine = function () {
|
|
3304
3304
|
if (scene == null) return;
|
|
3305
3305
|
scene.fire(
|
|
3306
|
-
msgPrefix +
|
|
3306
|
+
msgPrefix + ':clearSkyLine',
|
|
3307
3307
|
{ args: [] },
|
|
3308
3308
|
parentScene,
|
|
3309
3309
|
false
|
|
@@ -3312,7 +3312,7 @@ var EGovaGlobeMap = function (
|
|
|
3312
3312
|
that.setLineOptions = function (options) {
|
|
3313
3313
|
if (scene == null) return;
|
|
3314
3314
|
scene.fire(
|
|
3315
|
-
msgPrefix +
|
|
3315
|
+
msgPrefix + ':setLineOptions',
|
|
3316
3316
|
{ args: [options] },
|
|
3317
3317
|
parentScene,
|
|
3318
3318
|
false
|
|
@@ -3321,7 +3321,7 @@ var EGovaGlobeMap = function (
|
|
|
3321
3321
|
that.bufferAnalysis = function (options, clear, update, callback) {
|
|
3322
3322
|
if (scene == null) return;
|
|
3323
3323
|
scene.fire(
|
|
3324
|
-
msgPrefix +
|
|
3324
|
+
msgPrefix + ':bufferAnalysis',
|
|
3325
3325
|
{ args: [options, clear, update, callback] },
|
|
3326
3326
|
parentScene,
|
|
3327
3327
|
false
|
|
@@ -3330,7 +3330,7 @@ var EGovaGlobeMap = function (
|
|
|
3330
3330
|
that.clearBufferAnalysis = function (options) {
|
|
3331
3331
|
if (scene == null) return;
|
|
3332
3332
|
scene.fire(
|
|
3333
|
-
msgPrefix +
|
|
3333
|
+
msgPrefix + ':clearBufferAnalysis',
|
|
3334
3334
|
{ args: [] },
|
|
3335
3335
|
parentScene,
|
|
3336
3336
|
false
|
|
@@ -3339,7 +3339,7 @@ var EGovaGlobeMap = function (
|
|
|
3339
3339
|
that.addModelClickEvent = function (callback) {
|
|
3340
3340
|
if (scene == null) return;
|
|
3341
3341
|
scene.fire(
|
|
3342
|
-
msgPrefix +
|
|
3342
|
+
msgPrefix + ':addModelClickEvent',
|
|
3343
3343
|
{ args: [callback] },
|
|
3344
3344
|
parentScene,
|
|
3345
3345
|
false
|
|
@@ -3348,7 +3348,7 @@ var EGovaGlobeMap = function (
|
|
|
3348
3348
|
that.removeModelClickEvent = function () {
|
|
3349
3349
|
if (scene == null) return;
|
|
3350
3350
|
scene.fire(
|
|
3351
|
-
msgPrefix +
|
|
3351
|
+
msgPrefix + ':removeModelClickEvent',
|
|
3352
3352
|
{ args: [] },
|
|
3353
3353
|
parentScene,
|
|
3354
3354
|
false
|
|
@@ -3357,7 +3357,7 @@ var EGovaGlobeMap = function (
|
|
|
3357
3357
|
that.getBIMTree = function (option, callback) {
|
|
3358
3358
|
if (scene == null) return;
|
|
3359
3359
|
scene.fire(
|
|
3360
|
-
msgPrefix +
|
|
3360
|
+
msgPrefix + ':getBIMTree',
|
|
3361
3361
|
{ args: [option, callback] },
|
|
3362
3362
|
parentScene,
|
|
3363
3363
|
false
|
|
@@ -3366,7 +3366,7 @@ var EGovaGlobeMap = function (
|
|
|
3366
3366
|
that.setBIMTree = function (option) {
|
|
3367
3367
|
if (scene == null) return;
|
|
3368
3368
|
scene.fire(
|
|
3369
|
-
msgPrefix +
|
|
3369
|
+
msgPrefix + ':setBIMTree',
|
|
3370
3370
|
{ args: [option] },
|
|
3371
3371
|
parentScene,
|
|
3372
3372
|
false
|
|
@@ -3375,7 +3375,7 @@ var EGovaGlobeMap = function (
|
|
|
3375
3375
|
that.clearBimSelect = function () {
|
|
3376
3376
|
if (scene == null) return;
|
|
3377
3377
|
scene.fire(
|
|
3378
|
-
msgPrefix +
|
|
3378
|
+
msgPrefix + ':clearBimSelect',
|
|
3379
3379
|
{ args: [] },
|
|
3380
3380
|
parentScene,
|
|
3381
3381
|
false
|
|
@@ -3384,7 +3384,7 @@ var EGovaGlobeMap = function (
|
|
|
3384
3384
|
that.visibilityAnalysis = function (type) {
|
|
3385
3385
|
if (scene == null) return;
|
|
3386
3386
|
scene.fire(
|
|
3387
|
-
msgPrefix +
|
|
3387
|
+
msgPrefix + ':visibilityAnalysis',
|
|
3388
3388
|
{ args: [type] },
|
|
3389
3389
|
parentScene,
|
|
3390
3390
|
false
|
|
@@ -3393,7 +3393,7 @@ var EGovaGlobeMap = function (
|
|
|
3393
3393
|
that.clearVisibilityAnalysis = function () {
|
|
3394
3394
|
if (scene == null) return;
|
|
3395
3395
|
scene.fire(
|
|
3396
|
-
msgPrefix +
|
|
3396
|
+
msgPrefix + ':clearVisibilityAnalysis',
|
|
3397
3397
|
{ args: [] },
|
|
3398
3398
|
parentScene,
|
|
3399
3399
|
false
|
|
@@ -3402,7 +3402,7 @@ var EGovaGlobeMap = function (
|
|
|
3402
3402
|
that.addCIMTerrain = function (options) {
|
|
3403
3403
|
if (scene == null) return;
|
|
3404
3404
|
scene.fire(
|
|
3405
|
-
msgPrefix +
|
|
3405
|
+
msgPrefix + ':addCIMTerrain',
|
|
3406
3406
|
{ args: [options] },
|
|
3407
3407
|
parentScene,
|
|
3408
3408
|
false
|
|
@@ -3411,7 +3411,7 @@ var EGovaGlobeMap = function (
|
|
|
3411
3411
|
that.flytoPosition = function (lon, lat, height) {
|
|
3412
3412
|
if (scene == null) return;
|
|
3413
3413
|
scene.fire(
|
|
3414
|
-
msgPrefix +
|
|
3414
|
+
msgPrefix + ':flytoPosition',
|
|
3415
3415
|
{ args: [lon, lat, height] },
|
|
3416
3416
|
parentScene,
|
|
3417
3417
|
false
|
|
@@ -3421,7 +3421,7 @@ var EGovaGlobeMap = function (
|
|
|
3421
3421
|
that.openSunshineAnalysis = function () {
|
|
3422
3422
|
if (scene == null) return;
|
|
3423
3423
|
scene.fire(
|
|
3424
|
-
msgPrefix +
|
|
3424
|
+
msgPrefix + ':openSunshineAnalysis',
|
|
3425
3425
|
{ args: [] },
|
|
3426
3426
|
parentScene,
|
|
3427
3427
|
false
|
|
@@ -3430,7 +3430,7 @@ var EGovaGlobeMap = function (
|
|
|
3430
3430
|
that.sunshineAnalysis = function (date) {
|
|
3431
3431
|
if (scene == null) return;
|
|
3432
3432
|
scene.fire(
|
|
3433
|
-
msgPrefix +
|
|
3433
|
+
msgPrefix + ':sunshineAnalysis',
|
|
3434
3434
|
{ args: [date] },
|
|
3435
3435
|
parentScene,
|
|
3436
3436
|
false
|
|
@@ -3439,7 +3439,7 @@ var EGovaGlobeMap = function (
|
|
|
3439
3439
|
that.closeSunshineAnalysis = function () {
|
|
3440
3440
|
if (scene == null) return;
|
|
3441
3441
|
scene.fire(
|
|
3442
|
-
msgPrefix +
|
|
3442
|
+
msgPrefix + ':closeSunshineAnalysis',
|
|
3443
3443
|
{ args: [] },
|
|
3444
3444
|
parentScene,
|
|
3445
3445
|
false
|
|
@@ -3449,7 +3449,7 @@ var EGovaGlobeMap = function (
|
|
|
3449
3449
|
that.setViewConfig = function (type, options) {
|
|
3450
3450
|
if (scene == null) return;
|
|
3451
3451
|
scene.fire(
|
|
3452
|
-
msgPrefix +
|
|
3452
|
+
msgPrefix + ':setViewConfig',
|
|
3453
3453
|
{ args: [type, options] },
|
|
3454
3454
|
parentScene,
|
|
3455
3455
|
false
|
|
@@ -3459,7 +3459,7 @@ var EGovaGlobeMap = function (
|
|
|
3459
3459
|
that.searchAndShowPipe = function (url, options, color, clear) {
|
|
3460
3460
|
if (scene == null) return;
|
|
3461
3461
|
scene.fire(
|
|
3462
|
-
msgPrefix +
|
|
3462
|
+
msgPrefix + ':searchAndShowPipe',
|
|
3463
3463
|
{ args: [url, options, color, clear] },
|
|
3464
3464
|
parentScene,
|
|
3465
3465
|
false
|
|
@@ -3468,7 +3468,7 @@ var EGovaGlobeMap = function (
|
|
|
3468
3468
|
that.splitView = function (options) {
|
|
3469
3469
|
if (scene == null) return;
|
|
3470
3470
|
scene.fire(
|
|
3471
|
-
msgPrefix +
|
|
3471
|
+
msgPrefix + ':splitView',
|
|
3472
3472
|
{ args: [options] },
|
|
3473
3473
|
parentScene,
|
|
3474
3474
|
false
|
|
@@ -3479,7 +3479,7 @@ var EGovaGlobeMap = function (
|
|
|
3479
3479
|
that.drawRange = function (type) {
|
|
3480
3480
|
if (scene == null) return;
|
|
3481
3481
|
scene.fire(
|
|
3482
|
-
msgPrefix +
|
|
3482
|
+
msgPrefix + ':drawRange',
|
|
3483
3483
|
{ args: [type] },
|
|
3484
3484
|
parentScene,
|
|
3485
3485
|
false
|
|
@@ -3488,7 +3488,7 @@ var EGovaGlobeMap = function (
|
|
|
3488
3488
|
that.floodAnalysis = function (options) {
|
|
3489
3489
|
if (scene == null) return;
|
|
3490
3490
|
scene.fire(
|
|
3491
|
-
msgPrefix +
|
|
3491
|
+
msgPrefix + ':floodAnalysis',
|
|
3492
3492
|
{ args: [options] },
|
|
3493
3493
|
parentScene,
|
|
3494
3494
|
false
|
|
@@ -3497,7 +3497,7 @@ var EGovaGlobeMap = function (
|
|
|
3497
3497
|
that.clearFloodAnalysis = function () {
|
|
3498
3498
|
if (scene == null) return;
|
|
3499
3499
|
scene.fire(
|
|
3500
|
-
msgPrefix +
|
|
3500
|
+
msgPrefix + ':clearFloodAnalysis',
|
|
3501
3501
|
{ args: [] },
|
|
3502
3502
|
parentScene,
|
|
3503
3503
|
false
|
|
@@ -3507,7 +3507,7 @@ var EGovaGlobeMap = function (
|
|
|
3507
3507
|
that.currencyDraw = function (type) {
|
|
3508
3508
|
if (scene == null) return;
|
|
3509
3509
|
scene.fire(
|
|
3510
|
-
msgPrefix +
|
|
3510
|
+
msgPrefix + ':currencyDraw',
|
|
3511
3511
|
{ args: [type] },
|
|
3512
3512
|
parentScene,
|
|
3513
3513
|
false
|
|
@@ -3515,12 +3515,12 @@ var EGovaGlobeMap = function (
|
|
|
3515
3515
|
};
|
|
3516
3516
|
that.intersect = function () {
|
|
3517
3517
|
if (scene == null) return;
|
|
3518
|
-
scene.fire(msgPrefix +
|
|
3518
|
+
scene.fire(msgPrefix + ':intersect', { args: [] }, parentScene, false);
|
|
3519
3519
|
};
|
|
3520
3520
|
that.spatialAnalysisClear = function () {
|
|
3521
3521
|
if (scene == null) return;
|
|
3522
3522
|
scene.fire(
|
|
3523
|
-
msgPrefix +
|
|
3523
|
+
msgPrefix + ':spatialAnalysisClear',
|
|
3524
3524
|
{ args: [] },
|
|
3525
3525
|
parentScene,
|
|
3526
3526
|
false
|
|
@@ -3530,7 +3530,7 @@ var EGovaGlobeMap = function (
|
|
|
3530
3530
|
that.openDigSurface = function (options) {
|
|
3531
3531
|
if (scene == null) return;
|
|
3532
3532
|
scene.fire(
|
|
3533
|
-
msgPrefix +
|
|
3533
|
+
msgPrefix + ':openDigSurface',
|
|
3534
3534
|
{ args: [options] },
|
|
3535
3535
|
parentScene,
|
|
3536
3536
|
false
|
|
@@ -3539,7 +3539,7 @@ var EGovaGlobeMap = function (
|
|
|
3539
3539
|
that.closeDigSurface = function () {
|
|
3540
3540
|
if (scene == null) return;
|
|
3541
3541
|
scene.fire(
|
|
3542
|
-
msgPrefix +
|
|
3542
|
+
msgPrefix + ':closeDigSurface',
|
|
3543
3543
|
{ args: [] },
|
|
3544
3544
|
parentScene,
|
|
3545
3545
|
false
|
|
@@ -3549,7 +3549,7 @@ var EGovaGlobeMap = function (
|
|
|
3549
3549
|
that.setLayerAlpha = function (options) {
|
|
3550
3550
|
if (scene == null) return;
|
|
3551
3551
|
scene.fire(
|
|
3552
|
-
msgPrefix +
|
|
3552
|
+
msgPrefix + ':setLayerAlpha',
|
|
3553
3553
|
{ args: [options] },
|
|
3554
3554
|
parentScene,
|
|
3555
3555
|
false
|
|
@@ -3559,7 +3559,7 @@ var EGovaGlobeMap = function (
|
|
|
3559
3559
|
that.changeWeather = function (options) {
|
|
3560
3560
|
if (scene == null) return;
|
|
3561
3561
|
scene.fire(
|
|
3562
|
-
msgPrefix +
|
|
3562
|
+
msgPrefix + ':changeWeather',
|
|
3563
3563
|
{ args: [options] },
|
|
3564
3564
|
parentScene,
|
|
3565
3565
|
false
|
|
@@ -3569,7 +3569,7 @@ var EGovaGlobeMap = function (
|
|
|
3569
3569
|
that.closeWeather = function () {
|
|
3570
3570
|
if (scene == null) return;
|
|
3571
3571
|
scene.fire(
|
|
3572
|
-
msgPrefix +
|
|
3572
|
+
msgPrefix + ':closeWeather',
|
|
3573
3573
|
{ args: [] },
|
|
3574
3574
|
parentScene,
|
|
3575
3575
|
false
|
|
@@ -3579,7 +3579,7 @@ var EGovaGlobeMap = function (
|
|
|
3579
3579
|
that.changeModelTolerance = function (options) {
|
|
3580
3580
|
if (scene == null) return;
|
|
3581
3581
|
scene.fire(
|
|
3582
|
-
msgPrefix +
|
|
3582
|
+
msgPrefix + ':changeModelTolerance',
|
|
3583
3583
|
{ args: [options] },
|
|
3584
3584
|
parentScene,
|
|
3585
3585
|
false
|
|
@@ -3589,7 +3589,7 @@ var EGovaGlobeMap = function (
|
|
|
3589
3589
|
that.getModelTolerance = function (options) {
|
|
3590
3590
|
if (scene == null) return;
|
|
3591
3591
|
scene.fire(
|
|
3592
|
-
msgPrefix +
|
|
3592
|
+
msgPrefix + ':getModelTolerance',
|
|
3593
3593
|
{ args: [options] },
|
|
3594
3594
|
parentScene,
|
|
3595
3595
|
false
|
|
@@ -3599,7 +3599,7 @@ var EGovaGlobeMap = function (
|
|
|
3599
3599
|
that.setSkyBox = function (name, imgType) {
|
|
3600
3600
|
if (scene == null) return;
|
|
3601
3601
|
scene.fire(
|
|
3602
|
-
msgPrefix +
|
|
3602
|
+
msgPrefix + ':setSkyBox',
|
|
3603
3603
|
{ args: [name, imgType] },
|
|
3604
3604
|
parentScene,
|
|
3605
3605
|
false
|
|
@@ -3609,7 +3609,7 @@ var EGovaGlobeMap = function (
|
|
|
3609
3609
|
that.showPbrPanel = function (style) {
|
|
3610
3610
|
if (scene == null) return;
|
|
3611
3611
|
scene.fire(
|
|
3612
|
-
msgPrefix +
|
|
3612
|
+
msgPrefix + ':showPbrPanel',
|
|
3613
3613
|
{ args: [style] },
|
|
3614
3614
|
parentScene,
|
|
3615
3615
|
false
|
|
@@ -3618,7 +3618,7 @@ var EGovaGlobeMap = function (
|
|
|
3618
3618
|
that.hidePbrPanel = function () {
|
|
3619
3619
|
if (scene == null) return;
|
|
3620
3620
|
scene.fire(
|
|
3621
|
-
msgPrefix +
|
|
3621
|
+
msgPrefix + ':hidePbrPanel',
|
|
3622
3622
|
{ args: [] },
|
|
3623
3623
|
parentScene,
|
|
3624
3624
|
false
|
|
@@ -3627,7 +3627,7 @@ var EGovaGlobeMap = function (
|
|
|
3627
3627
|
that.showPop = function (property, keyPropety, position) {
|
|
3628
3628
|
if (scene == null) return;
|
|
3629
3629
|
scene.fire(
|
|
3630
|
-
msgPrefix +
|
|
3630
|
+
msgPrefix + ':showPop',
|
|
3631
3631
|
{ args: [property, keyPropety, position] },
|
|
3632
3632
|
parentScene,
|
|
3633
3633
|
false
|
|
@@ -3635,16 +3635,16 @@ var EGovaGlobeMap = function (
|
|
|
3635
3635
|
};
|
|
3636
3636
|
that.union = function () {
|
|
3637
3637
|
if (scene == null) return;
|
|
3638
|
-
scene.fire(msgPrefix +
|
|
3638
|
+
scene.fire(msgPrefix + ':union', { args: [] }, parentScene, false);
|
|
3639
3639
|
};
|
|
3640
3640
|
that.difference = function () {
|
|
3641
3641
|
if (scene == null) return;
|
|
3642
|
-
scene.fire(msgPrefix +
|
|
3642
|
+
scene.fire(msgPrefix + ':difference', { args: [] }, parentScene, false);
|
|
3643
3643
|
};
|
|
3644
3644
|
that.splitComparison = function (bool) {
|
|
3645
3645
|
if (scene == null) return;
|
|
3646
3646
|
scene.fire(
|
|
3647
|
-
msgPrefix +
|
|
3647
|
+
msgPrefix + ':splitComparison',
|
|
3648
3648
|
{ args: [bool] },
|
|
3649
3649
|
parentScene,
|
|
3650
3650
|
false
|
|
@@ -3653,7 +3653,7 @@ var EGovaGlobeMap = function (
|
|
|
3653
3653
|
that.addCIMVector = function (options) {
|
|
3654
3654
|
if (scene == null) return;
|
|
3655
3655
|
scene.fire(
|
|
3656
|
-
msgPrefix +
|
|
3656
|
+
msgPrefix + ':addCIMVector',
|
|
3657
3657
|
{ args: [options] },
|
|
3658
3658
|
parentScene,
|
|
3659
3659
|
false
|
|
@@ -3662,7 +3662,7 @@ var EGovaGlobeMap = function (
|
|
|
3662
3662
|
that.wmsLayerPick = function (options, cb) {
|
|
3663
3663
|
if (scene == null) return;
|
|
3664
3664
|
scene.fire(
|
|
3665
|
-
msgPrefix +
|
|
3665
|
+
msgPrefix + ':wmsLayerPick',
|
|
3666
3666
|
{ args: [options, cb] },
|
|
3667
3667
|
parentScene,
|
|
3668
3668
|
false
|
|
@@ -3671,7 +3671,7 @@ var EGovaGlobeMap = function (
|
|
|
3671
3671
|
that.heatMap = function (options, cb) {
|
|
3672
3672
|
if (scene == null) return;
|
|
3673
3673
|
scene.fire(
|
|
3674
|
-
msgPrefix +
|
|
3674
|
+
msgPrefix + ':heatMap',
|
|
3675
3675
|
{ args: [options, cb] },
|
|
3676
3676
|
parentScene,
|
|
3677
3677
|
false
|
|
@@ -3680,7 +3680,7 @@ var EGovaGlobeMap = function (
|
|
|
3680
3680
|
that.area = function (options, cb) {
|
|
3681
3681
|
if (scene == null) return;
|
|
3682
3682
|
scene.fire(
|
|
3683
|
-
msgPrefix +
|
|
3683
|
+
msgPrefix + ':area',
|
|
3684
3684
|
{ args: [options, cb] },
|
|
3685
3685
|
parentScene,
|
|
3686
3686
|
false
|
|
@@ -3689,12 +3689,30 @@ var EGovaGlobeMap = function (
|
|
|
3689
3689
|
that.line = function (options, cb) {
|
|
3690
3690
|
if (scene == null) return;
|
|
3691
3691
|
scene.fire(
|
|
3692
|
-
msgPrefix +
|
|
3692
|
+
msgPrefix + ':line',
|
|
3693
3693
|
{ args: [options, cb] },
|
|
3694
3694
|
parentScene,
|
|
3695
3695
|
false
|
|
3696
3696
|
);
|
|
3697
3697
|
};
|
|
3698
|
+
that.addSpotEffect = function (options) {
|
|
3699
|
+
if (scene == null) return;
|
|
3700
|
+
scene.fire(
|
|
3701
|
+
msgPrefix + ':addSpotEffect',
|
|
3702
|
+
{ args: [options] },
|
|
3703
|
+
parentScene,
|
|
3704
|
+
false
|
|
3705
|
+
);
|
|
3706
|
+
};
|
|
3707
|
+
that.spotEffectControl = function (options) {
|
|
3708
|
+
if (scene == null) return;
|
|
3709
|
+
scene.fire(
|
|
3710
|
+
msgPrefix + ':spotEffectControl',
|
|
3711
|
+
{ args: [options] },
|
|
3712
|
+
parentScene,
|
|
3713
|
+
false
|
|
3714
|
+
);
|
|
3715
|
+
};
|
|
3698
3716
|
that.init();
|
|
3699
3717
|
};
|
|
3700
3718
|
|