egovamap 0.12.7 → 0.13.3

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.
@@ -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
 
@@ -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
  // 移除监听
@@ -1204,6 +1204,22 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
1204
1204
  var config=scene.layerUsageConfig;
1205
1205
  scene.fire(msgPrefix + ":change3dlayerUsageConfig", {args: [config]}, parentScene);
1206
1206
  }
1207
+ /*显示多轨迹*/
1208
+ that.showTraceMultiHisLayer = function(objectIDs, symbolType, beginDate, endDate, clear, zoom, hStyle) {
1209
+ scene.fire((msgPrefix + ":showTraceMultiHisLayer"), {args: [objectIDs, symbolType, beginDate, endDate, clear, zoom, hStyle]}, parentScene);
1210
+ }
1211
+ /*清除多轨迹*/
1212
+ that.claerTraceMultiHisLayer = function() {
1213
+ scene.fire((msgPrefix + ":claerTraceMultiHisLayer"), {args: []}, parentScene);
1214
+ }
1215
+ /*多人员图标通过id高亮*/
1216
+ that.multiPointsSelectbyID = function(id) {
1217
+ scene.fire((msgPrefix + ":multiPointsSelectbyID"), {args: [id]}, parentScene);
1218
+ }
1219
+ /*多轨迹通过id高亮*/
1220
+ that.traceMultiSelectbyID = function(id) {
1221
+ scene.fire((msgPrefix + ":traceMultiSelectbyID"), {args: [id]}, parentScene);
1222
+ }
1207
1223
 
1208
1224
  that.init();
1209
1225
  }
@@ -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
  };
@@ -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 = false
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) {
@@ -3622,6 +3622,38 @@ var EGovaMap = function (containerID, callback, mapConfig, mapType, mapParam, co
3622
3622
  gisMap.removeRecCurrentV2Layer();
3623
3623
  }
3624
3624
  }
3625
+ /*加载多轨迹*/
3626
+ that.showTraceMultiHisLayer = function(objectIDs, symbolType, beginDate, endDate, clear, zoom, hStyle){
3627
+ if (scene == null)
3628
+ return;
3629
+ if (gisMap != null) {
3630
+ gisMap.showTraceMultiHisLayer.apply(this, arguments);
3631
+ }
3632
+ }
3633
+ /*清除多轨迹*/
3634
+ that.claerTraceMultiHisLayer = function(){
3635
+ if (scene == null)
3636
+ return;
3637
+ if (gisMap != null) {
3638
+ gisMap.claerTraceMultiHisLayer.apply(this, arguments);
3639
+ }
3640
+ }
3641
+ /*多人员图标通过id高亮*/
3642
+ that.multiPointsSelectbyID = function(id){
3643
+ if (scene == null)
3644
+ return;
3645
+ if (gisMap != null) {
3646
+ gisMap.multiPointsSelectbyID.apply(this, arguments);
3647
+ }
3648
+ }
3649
+ /*多轨迹通过id高亮*/
3650
+ that.traceMultiSelectbyID = function(id){
3651
+ if (scene == null)
3652
+ return;
3653
+ if (gisMap != null) {
3654
+ gisMap.traceMultiSelectbyID.apply(this, arguments);
3655
+ }
3656
+ }
3625
3657
 
3626
3658
 
3627
3659
  that.initMap(containerID, callback, mapType, mapConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.12.7",
3
+ "version": "0.13.3",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {