applications/drone-command/src/views/areaManage/partition/shapeTools/draw/DrawRectangleTool.js
@@ -45,6 +45,7 @@ const positions = this.getRectanglePositions() this.notify('getPolygonPositions', positions) this.tooltip.hide() this.clearPreviewEntities() } } @@ -94,6 +95,13 @@ return rectanglePositionsFromBounds(bounds) } clearPreviewEntities() { if (!this.dataSource) return this.dataSource.entities.removeAll() this.rectangleEntity = null this.outlineEntity = null } getPositionFromScreen(screenPosition) { const scene = this.viewer.scene const cartesian = scene.pickPosition(screenPosition)