egovamap 0.35.2 → 0.35.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.
@@ -1500,6 +1500,18 @@ var EGovaGISMap = function (
1500
1500
  );
1501
1501
  };
1502
1502
 
1503
+ /* 二维轨迹设置轨迹参数 */
1504
+ that.setTraceLayerOptions = function(options){
1505
+ if (scene == null) return;
1506
+ that.callMap("setTraceLayerOptions", options);
1507
+ }
1508
+
1509
+ /* 二维轨迹获取轨迹播放状态 */
1510
+ that.getTracePlayStatus = function(){
1511
+ if (scene == null) return;
1512
+ return that.callMap("getTracePlayStatus");
1513
+ }
1514
+
1503
1515
  /* 玄藏PC端轨迹*/
1504
1516
  that.showTraceGradientLayer = function (
1505
1517
  traceData,
@@ -2539,6 +2539,22 @@ var EGovaMap = function (
2539
2539
  }
2540
2540
  };
2541
2541
 
2542
+ /* 二维轨迹设置轨迹参数 */
2543
+ that.setTraceLayerOptions = function(options){
2544
+ if (scene == null) return;
2545
+ if (gisMap != null) {
2546
+ gisMap.setTraceLayerOptions(options);
2547
+ }
2548
+ }
2549
+
2550
+ /* 二维轨迹获取轨迹播放状态 */
2551
+ that.getTracePlayStatus = function(){
2552
+ if (scene == null) return;
2553
+ if (gisMap != null) {
2554
+ return gisMap.getTracePlayStatus();
2555
+ }
2556
+ }
2557
+
2542
2558
  that.showTraceGradientLayer = function (
2543
2559
  traceData,
2544
2560
  optimizeParams,
@@ -3911,9 +3927,16 @@ var EGovaMap = function (
3911
3927
  var endLevel = 24;
3912
3928
  var option = { style: 'add' };
3913
3929
  if (scene == null) return;
3914
- if (scene.layerUsageConfig && scene.layerUsageConfig[usageId]) {
3915
- wmsLayer = scene.layerUsageConfig[usageId].serviceLayerID;
3916
- serviceId = scene.layerUsageConfig[usageId].serviceID;
3930
+ if (usageId) {
3931
+ if (scene.layerUsageConfig && scene.layerUsageConfig[usageId]) {
3932
+ wmsLayer = scene.layerUsageConfig[usageId].serviceLayerID;
3933
+ serviceId = scene.layerUsageConfig[usageId].serviceID;
3934
+ }
3935
+ } else if (options.serviceId && options.serviceLayerId) {
3936
+ wmsLayer = options.serviceLayerId;
3937
+ serviceId = options.serviceId;
3938
+ } else {
3939
+ return;
3917
3940
  }
3918
3941
  if (options && options.style) {
3919
3942
  style = options.style;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.35.2",
3
+ "version": "0.35.4",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {