egovamap 0.13.0 → 0.14.0
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 +59 -0
- package/egovamap/egovagis.js +9 -1
- package/egovamap/egovaglobe.js +15 -0
- package/egovamap/egovamap.js +2 -2
- package/package.json +1 -1
package/egovamap/egovaBI.js
CHANGED
|
@@ -621,6 +621,65 @@ var egovaBI = function(globeMap, gisMap, mapType){
|
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
+
|
|
625
|
+
this.networkCloud = function (options, positions) {
|
|
626
|
+
if(!globeMap) {return}
|
|
627
|
+
globeMap.networkCloud(options, positions)
|
|
628
|
+
}
|
|
629
|
+
this.clearNetworkCloud = function (layerNames) {
|
|
630
|
+
if(!globeMap) {return}
|
|
631
|
+
globeMap.clearNetworkCloud(layerNames)
|
|
632
|
+
}
|
|
633
|
+
this.lineOperation = function(options, data) {
|
|
634
|
+
if(!options || !options.layerName){
|
|
635
|
+
console.log('图层名必须传递')
|
|
636
|
+
return
|
|
637
|
+
}
|
|
638
|
+
// 数据获取
|
|
639
|
+
let queryFeature = (queryParams) => {
|
|
640
|
+
if(gisMap) {
|
|
641
|
+
return new Promise(function(resolve) {
|
|
642
|
+
let cb = function(result) {
|
|
643
|
+
resolve(result)
|
|
644
|
+
}
|
|
645
|
+
gisMap.queryFeature(queryParams, cb)
|
|
646
|
+
})
|
|
647
|
+
} else {
|
|
648
|
+
return Promise.resolve(undefined)
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
// 执行绘制
|
|
652
|
+
let drawLine = (options, data) => {
|
|
653
|
+
if(!globeMap) {return}
|
|
654
|
+
globeMap.lineOperation(options, data)
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
// 主逻辑
|
|
658
|
+
if(!!data) {
|
|
659
|
+
drawLine(options, data)
|
|
660
|
+
} else {
|
|
661
|
+
if(!options.usageID) {
|
|
662
|
+
console.log('图层用途必须传递')
|
|
663
|
+
return
|
|
664
|
+
}
|
|
665
|
+
let queryParams = {
|
|
666
|
+
layerID: options.usageID,
|
|
667
|
+
where: options.filterString || "1=1",
|
|
668
|
+
geometry: '',
|
|
669
|
+
outGeometry: true,
|
|
670
|
+
options: { originalData: true }
|
|
671
|
+
}
|
|
672
|
+
queryFeature(queryParams)
|
|
673
|
+
.then(function(resultData) {
|
|
674
|
+
if(!resultData) {
|
|
675
|
+
console.log('没有查询到数据,请检查查询参数')
|
|
676
|
+
return
|
|
677
|
+
}
|
|
678
|
+
drawLine(options, resultData)
|
|
679
|
+
})
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
}
|
|
624
683
|
}
|
|
625
684
|
|
|
626
685
|
|
package/egovamap/egovagis.js
CHANGED
|
@@ -510,7 +510,7 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
|
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
/* 显示多个自定义图标 */
|
|
513
|
-
that.showMultiObjectCurrentPosition = function (jsonInfo, zoom, bClear, hStyleID, infoStyle, bCanvas, tagName, clusterOption,hasHover, clickCallback,mouseOverCallBack) {
|
|
513
|
+
that.showMultiObjectCurrentPosition = function (jsonInfo, zoom, bClear, hStyleID, infoStyle, bCanvas, tagName, clusterOption, hasHover, layerID, clickCallback, mouseOverCallBack) {
|
|
514
514
|
if (scene == null)
|
|
515
515
|
return;
|
|
516
516
|
// 移除监听
|
|
@@ -698,6 +698,14 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
|
|
|
698
698
|
parentScene);
|
|
699
699
|
}
|
|
700
700
|
|
|
701
|
+
/**
|
|
702
|
+
*停止绘制要素
|
|
703
|
+
**/
|
|
704
|
+
that.stopDraw = function(){
|
|
705
|
+
scene.fire(msgPrefix + ":stopDraw", { args: [] },
|
|
706
|
+
parentScene);
|
|
707
|
+
}
|
|
708
|
+
|
|
701
709
|
/**
|
|
702
710
|
*等值面生成
|
|
703
711
|
**/
|
package/egovamap/egovaglobe.js
CHANGED
|
@@ -1819,6 +1819,21 @@ var EGovaGlobeMap = function ($container, pScene, prefix, mapConfig, context, ca
|
|
|
1819
1819
|
return;
|
|
1820
1820
|
scene.fire((msgPrefix + ":activeLayer"), {args: [layerName, options, filter]}, parentScene, false);
|
|
1821
1821
|
};
|
|
1822
|
+
that.networkCloud = function(options, positions){
|
|
1823
|
+
if (scene == null)
|
|
1824
|
+
return;
|
|
1825
|
+
scene.fire((msgPrefix + ":networkCloud"), {args: [options, positions]}, parentScene, false);
|
|
1826
|
+
};
|
|
1827
|
+
that.clearNetworkCloud = function(layerNames){
|
|
1828
|
+
if (scene == null)
|
|
1829
|
+
return;
|
|
1830
|
+
scene.fire((msgPrefix + ":clearNetworkCloud"), {args: [layerNames]}, parentScene, false);
|
|
1831
|
+
};
|
|
1832
|
+
that.lineOperation = function(options, data){
|
|
1833
|
+
if (scene == null)
|
|
1834
|
+
return;
|
|
1835
|
+
scene.fire((msgPrefix + ":lineOperation"), {args: [options, data]}, parentScene, false);
|
|
1836
|
+
};
|
|
1822
1837
|
|
|
1823
1838
|
that.init();
|
|
1824
1839
|
};
|
package/egovamap/egovamap.js
CHANGED
|
@@ -48,7 +48,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
48
48
|
|
|
49
49
|
//hth 调用三维接口时,是否同步调用二维gis接口,默认false
|
|
50
50
|
if(context.synchroSetting === undefined) {
|
|
51
|
-
this.synchroSetting =
|
|
51
|
+
this.synchroSetting = true
|
|
52
52
|
} else {
|
|
53
53
|
this.synchroSetting = context.synchroSetting
|
|
54
54
|
}
|
|
@@ -1664,7 +1664,7 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
|
|
|
1664
1664
|
};
|
|
1665
1665
|
|
|
1666
1666
|
/* 显示多个自定义图标 */
|
|
1667
|
-
that.showMultiObjectCurrentPosition = function (jsonInfo, zoom, bClear, hStyleID, infoStyle, bCanvas, tagName, clickCallback, mouseOverCallBack, clusterOption,hasHover) {
|
|
1667
|
+
that.showMultiObjectCurrentPosition = function (jsonInfo, zoom, bClear, hStyleID, infoStyle, bCanvas, tagName, clickCallback, mouseOverCallBack, clusterOption, hasHover, layerID) {
|
|
1668
1668
|
if (scene == null)
|
|
1669
1669
|
return;
|
|
1670
1670
|
if (gisMap != null && that.synchroSetting === true) {
|