egovamap 0.12.3 → 0.12.7
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/egovaBI.js
CHANGED
|
@@ -380,9 +380,6 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
380
380
|
* @date: 2021-11-11 15:40:31
|
|
381
381
|
*/
|
|
382
382
|
this.showPolyline_BI = function (layerName, positions = [], options = {}) {
|
|
383
|
-
if (scene === null) {
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
386
383
|
if (globeMap !== null) {
|
|
387
384
|
// 默认参数
|
|
388
385
|
let defaultOpt = {
|
|
@@ -421,7 +418,7 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
421
418
|
//click相关
|
|
422
419
|
clickColor: "rgb(255, 255, 0.0)", // 点击后的颜色
|
|
423
420
|
clickWidth: 30, // 点击后的宽度
|
|
424
|
-
clickCallback: function(e) {console.log('click polyline', e)},
|
|
421
|
+
clickCallback: undefined, // function(e) {console.log('click polyline', e)},
|
|
425
422
|
mouseOverCallBack: undefined
|
|
426
423
|
}
|
|
427
424
|
}
|
package/egovamap/egovagis.js
CHANGED
|
@@ -18,6 +18,8 @@ function setCookie(name, value) {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
function checkGisServerURL(url, callback) {
|
|
21
|
+
if(!url) return;
|
|
22
|
+
|
|
21
23
|
var cookieUrl = getCookie("gisUrl");
|
|
22
24
|
var gisProxyList = url.split(";");
|
|
23
25
|
cookieUrl && gisProxyList.push(cookieUrl);
|
|
@@ -1353,13 +1355,16 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig, co
|
|
|
1353
1355
|
}
|
|
1354
1356
|
|
|
1355
1357
|
/* 圆饼图 */
|
|
1356
|
-
that.addCircleChart = function (name, data, color, param, id, minZoom, maxZoom) {
|
|
1358
|
+
that.addCircleChart = function (name, data, color, param, id, minZoom, maxZoom, clickCallback) {
|
|
1357
1359
|
color = color || "#1B5771";
|
|
1358
1360
|
param = param || {
|
|
1359
1361
|
minRadius: 20,
|
|
1360
1362
|
rangeRadius: 20
|
|
1361
1363
|
};
|
|
1362
|
-
|
|
1364
|
+
var callback = function(type,info){
|
|
1365
|
+
if(type === "clickCallback" && clickCallback) clickCallback(info);
|
|
1366
|
+
}
|
|
1367
|
+
that.callMap('addCircleChart', name, data, color, param, id, minZoom, maxZoom, callback);
|
|
1363
1368
|
}
|
|
1364
1369
|
|
|
1365
1370
|
/* 饼图 */
|
package/egovamap/egovaglobe.js
CHANGED
|
@@ -16,6 +16,8 @@ function setCookie(name,value){
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
function checkGlobeServerURL(url,callback){
|
|
19
|
+
if(!url) return;
|
|
20
|
+
|
|
19
21
|
var cookieUrl = getCookie("globeGisUrl");
|
|
20
22
|
var gisProxyList = url.split(";");
|
|
21
23
|
cookieUrl && gisProxyList.push(cookieUrl);
|
|
@@ -759,10 +761,10 @@ var EGovaGlobeMap = function ($container, pScene, prefix, mapConfig, context, ca
|
|
|
759
761
|
}
|
|
760
762
|
|
|
761
763
|
/* 缩放到指定中心点和级别 */
|
|
762
|
-
that.centerAndZoom = function(x, y, level, heading, picth, duration) {
|
|
764
|
+
that.centerAndZoom = function(x, y, level, heading, picth, duration, opt) {
|
|
763
765
|
if (scene == null)
|
|
764
766
|
return;
|
|
765
|
-
that.fireEvent("centerAndZoom", {args: [x, y, level, heading, picth, duration]}, false);
|
|
767
|
+
that.fireEvent("centerAndZoom", {args: [x, y, level, heading, picth, duration, opt]}, false);
|
|
766
768
|
}
|
|
767
769
|
|
|
768
770
|
/* 缩放到指定级别 */
|
package/egovamap/egovamap.js
CHANGED
|
@@ -395,7 +395,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
395
395
|
|
|
396
396
|
}
|
|
397
397
|
/* 缩放到指定中心点和级别 */
|
|
398
|
-
that.centerAndZoom = function (x, y, level, heading, picth, duration) {
|
|
398
|
+
that.centerAndZoom = function (x, y, level, heading, picth, duration, opt) {
|
|
399
399
|
if (scene == null)
|
|
400
400
|
return;
|
|
401
401
|
if (gisMap != null) {
|
|
@@ -403,7 +403,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
403
403
|
}
|
|
404
404
|
if (globeMap != null) {
|
|
405
405
|
var lonlat = MapUtils.toLonLat(x, y);
|
|
406
|
-
globeMap.centerAndZoom(lonlat.x, lonlat.y, level, heading, picth, duration);
|
|
406
|
+
globeMap.centerAndZoom(lonlat.x, lonlat.y, level, heading, picth, duration, opt);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
/* 缩放到指定级别 */
|
|
@@ -2099,7 +2099,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
2099
2099
|
}
|
|
2100
2100
|
|
|
2101
2101
|
/* 区域饼图 */
|
|
2102
|
-
that.addCircleChart = function (name, data, color, param) {
|
|
2102
|
+
that.addCircleChart = function (name, data, color, param, minZoom, maxZoom, clickCallback) {
|
|
2103
2103
|
if (scene == null)
|
|
2104
2104
|
return;
|
|
2105
2105
|
if (gisMap != null) {
|