@vtx/map 1.1.24 → 1.1.26
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.
package/lib/VtxMap/TMap/TMap.js
CHANGED
|
@@ -2325,8 +2325,9 @@ var TMap = /*#__PURE__*/function (_React$Component) {
|
|
|
2325
2325
|
ms.geometry._extent = (0, _MapToolFunction.getMaxMin)(ms.mapLayer.getLngLats()[0])._extent;
|
|
2326
2326
|
obj.geometry = ms.geometry;
|
|
2327
2327
|
obj.param = ms; // obj.area = getPolygonArea(ms.mapLayer.getLngLats()[0]);
|
|
2328
|
+
// obj.area = t.polygonTool.getArea(ms.mapLayer.getLngLats()[0]);
|
|
2329
|
+
// 关闭多边形多个听绘制后,回显报错
|
|
2328
2330
|
|
|
2329
|
-
obj.area = t.polygonTool.getArea(ms.mapLayer.getLngLats()[0]);
|
|
2330
2331
|
break;
|
|
2331
2332
|
|
|
2332
2333
|
case 'circle':
|