egovamap 0.35.6 → 0.35.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.
@@ -1308,12 +1308,12 @@ var EGovaGISMap = function (
1308
1308
  });
1309
1309
  }
1310
1310
  /*if (context.sysConfig['PATROL_POS_WRITE_TO_FILE']) {
1311
- if (queryCondition) {
1312
- queryCondition = $.extend({}, queryCondition, { 'resourcetype': 2 });
1313
- } else {
1314
- queryCondition = { 'resourcetype': 2 };
1315
- }
1316
- }*/
1311
+ if (queryCondition) {
1312
+ queryCondition = $.extend({}, queryCondition, { 'resourcetype': 2 });
1313
+ } else {
1314
+ queryCondition = { 'resourcetype': 2 };
1315
+ }
1316
+ }*/
1317
1317
  scene.fire(
1318
1318
  msgPrefix + ":showObjectTrace",
1319
1319
  {
@@ -2173,7 +2173,8 @@ var EGovaGISMap = function (
2173
2173
  usePage,
2174
2174
  currentPage,
2175
2175
  numPerPage,
2176
- params
2176
+ params,
2177
+ cacheKey
2177
2178
  ) {
2178
2179
  var queryParam = {
2179
2180
  tableName: tableName,
@@ -2194,6 +2195,7 @@ var EGovaGISMap = function (
2194
2195
  usePage,
2195
2196
  currentPage,
2196
2197
  numPerPage,
2198
+ cacheKey,
2197
2199
  ],
2198
2200
  },
2199
2201
  parentScene,
@@ -2306,7 +2306,8 @@ var EGovaGISMap = function (
2306
2306
  usePage,
2307
2307
  currentPage,
2308
2308
  numPerPage,
2309
- params
2309
+ params,
2310
+ cacheKey
2310
2311
  ) {
2311
2312
  var queryParam = {
2312
2313
  tableName: tableName,
@@ -2328,7 +2329,8 @@ var EGovaGISMap = function (
2328
2329
  usePage,
2329
2330
  currentPage,
2330
2331
  numPerPage,
2331
- cb
2332
+ cb,
2333
+ cacheKey
2332
2334
  );
2333
2335
  };
2334
2336
 
@@ -1422,23 +1422,23 @@ var EGovaMap = function (
1422
1422
  return RGBA;
1423
1423
  }
1424
1424
  /**
1425
- * colorParse
1426
- * @desc 颜色字符串格式化
1427
- * "rgba(), rgb()格式的字符串输入,返回对象"
1428
- *
1429
- * @param {String} colorString 描述颜色的字符串,支持rgb和rgba格式
1430
- * @return {Object} result 如果输入格式正确,返回对象,否则返回false
1431
- * @example
1432
- {
1433
- red: 0.39215686274509803,
1434
- green: 0.49019607843137253,
1435
- blue: 0.8313725490196079,
1436
- alpha: 0.9
1437
- }
1438
- *
1439
- * @author: hth
1440
- * @date: 2021/2/24
1441
- * */
1425
+ * colorParse
1426
+ * @desc 颜色字符串格式化
1427
+ * "rgba(), rgb()格式的字符串输入,返回对象"
1428
+ *
1429
+ * @param {String} colorString 描述颜色的字符串,支持rgb和rgba格式
1430
+ * @return {Object} result 如果输入格式正确,返回对象,否则返回false
1431
+ * @example
1432
+ {
1433
+ red: 0.39215686274509803,
1434
+ green: 0.49019607843137253,
1435
+ blue: 0.8313725490196079,
1436
+ alpha: 0.9
1437
+ }
1438
+ *
1439
+ * @author: hth
1440
+ * @date: 2021/2/24
1441
+ * */
1442
1442
  function colorParse(colorString) {
1443
1443
  var result = {};
1444
1444
  // Remove all whitespaces from the color string
@@ -1647,7 +1647,7 @@ var EGovaMap = function (
1647
1647
  // By hth 2021/5/11: 如果颜色大于50,考虑到性能和可能卡死的问题,则直接采用随机颜色赋值且不考虑随机到重复色的情况
1648
1648
  var extraColor = getRandomColorArray(
1649
1649
  keyValueArray.length -
1650
- tempValue.length,
1650
+ tempValue.length,
1651
1651
  tempValue[0]
1652
1652
  );
1653
1653
  tempValue =
@@ -1684,10 +1684,10 @@ var EGovaMap = function (
1684
1684
  obj[key] =
1685
1685
  obj[key] ||
1686
1686
  tempValue[
1687
- Math.round(
1688
- Math.random() *
1689
- (colorLength - 1)
1690
- )
1687
+ Math.round(
1688
+ Math.random() *
1689
+ (colorLength - 1)
1690
+ )
1691
1691
  ];
1692
1692
  } else {
1693
1693
  obj[key] = obj[key] || tempValue[index];
@@ -2540,7 +2540,7 @@ var EGovaMap = function (
2540
2540
  };
2541
2541
 
2542
2542
  /* 二维轨迹设置轨迹参数 */
2543
- that.setTraceLayerOptions = function(options){
2543
+ that.setTraceLayerOptions = function (options) {
2544
2544
  if (scene == null) return;
2545
2545
  if (gisMap != null) {
2546
2546
  gisMap.setTraceLayerOptions(options);
@@ -2548,7 +2548,7 @@ var EGovaMap = function (
2548
2548
  }
2549
2549
 
2550
2550
  /* 二维轨迹获取轨迹播放状态 */
2551
- that.getTracePlayStatus = function(){
2551
+ that.getTracePlayStatus = function () {
2552
2552
  if (scene == null) return;
2553
2553
  if (gisMap != null) {
2554
2554
  return gisMap.getTracePlayStatus();
@@ -3011,7 +3011,8 @@ var EGovaMap = function (
3011
3011
  usePage,
3012
3012
  currentPage,
3013
3013
  numPerPage,
3014
- params
3014
+ params,
3015
+ cacheKey
3015
3016
  ) {
3016
3017
  if (!scene) return;
3017
3018
  if (gisMap) gisMap.queryObjectInfo.apply(this, arguments);
@@ -108,7 +108,10 @@ var egovamapMEx = function (gisMobileMap) {
108
108
  'setTraceHisGradientStatus',
109
109
  'countLength',
110
110
  'xkRealTimeTrace',
111
- 'closexkRealTimeTrace'
111
+ 'closexkRealTimeTrace',
112
+ "initxkTrace",
113
+ "xkMoveTraceByTime",
114
+ "xkSetTraceStatus"
112
115
  ];
113
116
  methodEx = methodEx.concat(methodBusEx);
114
117
  for (let index = 0; index < methodEx.length; index++) {
@@ -412,6 +412,9 @@ var EGovaMobileMap = function (
412
412
  "countLength",
413
413
  "xkRealTimeTrace",
414
414
  "closexkRealTimeTrace",
415
+ "initxkTrace",
416
+ "xkMoveTraceByTime",
417
+ "xkSetTraceStatus"
415
418
  ];
416
419
  methodEx = methodEx.concat(methodBusEx);
417
420
  for (let index = 0; index < methodEx.length; index++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.35.6",
3
+ "version": "0.35.7",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {