This commit is contained in:
zh
2025-12-17 18:06:13 +08:00
parent 61f93a81f2
commit 27543a3eae
18 changed files with 146 additions and 117 deletions

View File

@ -545,7 +545,7 @@ class EllipseObject extends Base {
return this._areaChangeCallBack
}
set areaChangeCallBack (cd) {
set areaChangeCallBack(cd) {
this._areaChangeCallBack = cd
}
@ -1344,7 +1344,7 @@ class EllipseObject extends Base {
center: this.deepCopyObj(this.options.center)
}
this.positionEditing = false
if(this._positionEditingCallback) {
if (this._positionEditingCallback) {
this._positionEditingCallback()
this._positionEditingCallback = null
}
@ -1571,20 +1571,22 @@ class EllipseObject extends Base {
that.heightMode = that.heightMode
cb('', {...this.options.center})
cb('', { ...this.options.center })
})
that.getClampToHeight({
lng: that.center.lng,
lat: that.center.lat
}, objectsToExclude).then(height => {
that.label && (that.label.position = [
that.center.lng,
that.center.lat,
height
])
})
setTimeout(() => {
that.getClampToHeight({
lng: that.center.lng,
lat: that.center.lat
}, objectsToExclude).then(height => {
that.label && (that.label.position = [
that.center.lng,
that.center.lat,
height
])
})
}, 200);
createNodePoints(positions[0], 'semiMajorAxis')
createNodePoints(positions[(length - 2) / 4], 'semiMinorAxis')
createNodePoints(positions[(length - 2) / 2], 'semiMajorAxis')
@ -1611,7 +1613,7 @@ class EllipseObject extends Base {
}
}
closeNodeEdit() {
closeNodeEdit() {
YJ.Measure.SetMeasureStatus(false)
this.event && this.event.destroy()
this.tip && this.tip.destroy()