| * | * | ||||
| * @private | * @private | ||||
| */ | */ | ||||
| _stopdHook() { | |||||
| _stopedHook() { | |||||
| this._overlay.positions = Transform.transformCartesianArrayToWGS84Array( | this._overlay.positions = Transform.transformCartesianArrayToWGS84Array( | ||||
| this._positions | this._positions | ||||
| ) | ) | ||||
| this._unbindEvent() | this._unbindEvent() | ||||
| this._viewer.editTool.deactivate() | this._viewer.editTool.deactivate() | ||||
| this._layer.entities.remove(this._delegate) | this._layer.entities.remove(this._delegate) | ||||
| this._stopdHook() | |||||
| this._stopedHook() | |||||
| } | } | ||||
| /** | /** |
| * | * | ||||
| * @private | * @private | ||||
| */ | */ | ||||
| _stopdHook() { | |||||
| _stopedHook() { | |||||
| this._overlay.position = Transform.transformCartesianToWGS84(this._position) | this._overlay.position = Transform.transformCartesianToWGS84(this._position) | ||||
| this._overlay.show = true | this._overlay.show = true | ||||
| this._options.onEditStop && this._options.onEditStop(this._overlay) | this._options.onEditStop && this._options.onEditStop(this._overlay) |
| _mountedHook() { | _mountedHook() { | ||||
| this._radius = this._overlay.radius | this._radius = this._overlay.radius | ||||
| this._center = Transform.transformWGS84ToCartesian(this._overlay.center) | this._center = Transform.transformWGS84ToCartesian(this._overlay.center) | ||||
| // this._delegate = new Cesium.Entity({ | |||||
| // polygon: { | |||||
| // material: this._overlay.delegate?.polygon?.material | |||||
| // } | |||||
| // }) | |||||
| this._positions = [].concat([ | this._positions = [].concat([ | ||||
| this._center, | this._center, | ||||
| this._computeCirclePoints(this._center, this._radius)[0] | this._computeCirclePoints(this._center, this._radius)[0] | ||||
| * | * | ||||
| * @private | * @private | ||||
| */ | */ | ||||
| _stopdHook() { | |||||
| _stopedHook() { | |||||
| this._overlay.center = Transform.transformCartesianToWGS84( | this._overlay.center = Transform.transformCartesianToWGS84( | ||||
| this._positions[0] | this._positions[0] | ||||
| ) | ) |
| * | * | ||||
| * @private | * @private | ||||
| */ | */ | ||||
| _stopdHook() { | |||||
| _stopedHook() { | |||||
| this._overlay.position = Transform.transformCartesianToWGS84(this._position) | this._overlay.position = Transform.transformCartesianToWGS84(this._position) | ||||
| this._overlay.show = true | this._overlay.show = true | ||||
| this._options.onEditStop && this._options.onEditStop(this._overlay) | this._options.onEditStop && this._options.onEditStop(this._overlay) |