egovamap 0.28.5 → 0.28.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.
@@ -1147,7 +1147,7 @@ var egovaBI = function (globeMap, gisMap, mapType) {
1147
1147
  comCallbak: callback,
1148
1148
  order: options.order,
1149
1149
  inverse: options.inverse,
1150
- // hLabelStyle: options.hLabelStyle, // 选中文字时效果,没用
1150
+ ...options.option, // option的其他参数
1151
1151
  };
1152
1152
  if (options.labelSetting.labelZoomEnabled == "show") {
1153
1153
  lfcOpt.labelMinZoom = options.labelSetting.labelMinZoom;
@@ -1428,6 +1428,24 @@ var EGovaGISMap = function ($container, pScene, prefix, gisParams, mapConfig,con
1428
1428
  that.clearCustomGrid = function () {
1429
1429
  scene.fire((msgPrefix + ":clearCustomGrid"), {args: []}, parentScene);
1430
1430
  }
1431
+
1432
+ /**
1433
+ * 开始测量
1434
+ * @param {*} options {type:'area'|'length'; callBack:绘制完成回调函数;errorCallBack:错误回调函数;}
1435
+ */
1436
+ that.startMeasure = function(options) {
1437
+ if (scene == null)
1438
+ return;
1439
+ scene.fire(msgPrefix + ":startMeasure", { args : [ options ] }, parentScene, false);
1440
+ }
1441
+
1442
+ // 结束测量
1443
+ that.stopMeasure = function() {
1444
+ if (scene == null)
1445
+ return;
1446
+ scene.fire(msgPrefix + ":stopMeasure", { args : [] }, parentScene, false);
1447
+ }
1448
+
1431
1449
  that.init();
1432
1450
  }
1433
1451
  export default EGovaGISMap;
@@ -2590,7 +2590,20 @@ var EGovaGISMap = function (
2590
2590
 
2591
2591
  that.setTreeLayerShow = function(options, cb) {
2592
2592
  that.callMap('setTreeLayerShow', options, cb);
2593
- }
2593
+ };
2594
+
2595
+ /**
2596
+ * 开始测量
2597
+ * @param {*} options {type:'area'|'length'; callBack:绘制完成回调函数}
2598
+ */
2599
+ that.startMeasure = function (options) {
2600
+ return that.callMap("startMeasure", options);
2601
+ };
2602
+
2603
+ // 结束测量
2604
+ that.stopMeasure = function () {
2605
+ return that.callMap("stopMeasure");
2606
+ };
2594
2607
 
2595
2608
  that.init();
2596
2609
  };
@@ -5128,6 +5128,30 @@ var EGovaMap = function (
5128
5128
  gisMap.clearCustomGrid();
5129
5129
  }
5130
5130
  };
5131
+
5132
+ /**
5133
+ * 开始测量
5134
+ * @param {*} options {type:'area'|'length'; callBack:绘制完成回调函数;errorCallBack:错误回调函数;}
5135
+ */
5136
+ that.startMeasure = function (options) {
5137
+ if (scene == null) {
5138
+ return;
5139
+ }
5140
+ if (gisMap != null) {
5141
+ gisMap.startMeasure(options);
5142
+ }
5143
+ };
5144
+
5145
+ // 结束测量
5146
+ that.stopMeasure = function () {
5147
+ if (scene == null) {
5148
+ return;
5149
+ }
5150
+ if (gisMap != null) {
5151
+ gisMap.stopMeasure();
5152
+ }
5153
+ };
5154
+
5131
5155
  that.initMap(containerID, callback, mapType, mapConfig);
5132
5156
 
5133
5157
  // EGovaBI(globeMap).bind(this)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.28.5",
3
+ "version": "0.28.7",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {