egovamap 0.35.41 → 0.35.43

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.
@@ -2402,8 +2402,8 @@ var EGovaGISMap = function (
2402
2402
  };
2403
2403
 
2404
2404
  /* 计算多边形面积 */
2405
- that.getPolygonArea = function (geometry) {
2406
- return that.callMap("getPolygonArea", geometry);
2405
+ that.getPolygonArea = function (geometry, callback) {
2406
+ return that.callMap("getPolygonArea", geometry, callback);
2407
2407
  };
2408
2408
 
2409
2409
  /* 根据PointID定位空中全景 */
@@ -3821,6 +3821,15 @@ var EGovaGlobeMap = function (
3821
3821
  parentScene,
3822
3822
  false
3823
3823
  );
3824
+ };
3825
+ that.setToolBarStyle = function (position, direction, display, style) {
3826
+ if (scene == null) return;
3827
+ scene.fire(
3828
+ msgPrefix + ':setToolBarStyle',
3829
+ { args: [position, direction, display, style] },
3830
+ parentScene,
3831
+ false
3832
+ );
3824
3833
  };
3825
3834
  that.init();
3826
3835
  };
@@ -3342,7 +3342,7 @@ var EGovaMap = function (
3342
3342
  return gisMap.getGeometryLength.apply(this, arguments);
3343
3343
  };
3344
3344
  /* 计算多边形面积 */
3345
- that.getPolygonArea = function (geometry) {
3345
+ that.getPolygonArea = function (geometry, callback) {
3346
3346
  if (scene == null) return;
3347
3347
  if (gisMap != null) return gisMap.getPolygonArea.apply(this, arguments);
3348
3348
  };
@@ -5672,6 +5672,13 @@ var EGovaMap = function (
5672
5672
  globeMap.longitudinalSectionalAnalysis(layerName, data, options);
5673
5673
  }
5674
5674
  };
5675
+
5676
+ that.setToolBarStyle = function (position, direction, display, style) {
5677
+ if (scene == null) return;
5678
+ if (globeMap != null) {
5679
+ globeMap.setToolBarStyle(position, direction, display, style);
5680
+ }
5681
+ };
5675
5682
 
5676
5683
  that.addAnimatedLines = function (data, options) {
5677
5684
  if (scene == null) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egovamap",
3
- "version": "0.35.41",
3
+ "version": "0.35.43",
4
4
  "description": "eUrbanGIS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {