12-17
This commit is contained in:
@ -1440,7 +1440,7 @@ class SectorObject extends Base {
|
||||
center: this.deepCopyObj(this.options.center)
|
||||
}
|
||||
this.positionEditing = false
|
||||
if(this._positionEditingCallback) {
|
||||
if (this._positionEditingCallback) {
|
||||
this._positionEditingCallback()
|
||||
this._positionEditingCallback = null
|
||||
}
|
||||
@ -1520,7 +1520,7 @@ class SectorObject extends Base {
|
||||
return this._areaChangeCallBack
|
||||
}
|
||||
|
||||
set areaChangeCallBack (cd) {
|
||||
set areaChangeCallBack(cd) {
|
||||
this._areaChangeCallBack = cd
|
||||
}
|
||||
|
||||
@ -1597,18 +1597,20 @@ class SectorObject extends Base {
|
||||
that.cartesian3Towgs84(positions[positions.length - 4], that.sdk.viewer)
|
||||
]
|
||||
let objectsToExclude = [...that.sdk.viewer.entities.values]
|
||||
that
|
||||
.getClampToHeight({
|
||||
lng: that.options.center.lng,
|
||||
lat: that.options.center.lat
|
||||
}, objectsToExclude)
|
||||
.then(height => {
|
||||
that.label.position = [
|
||||
that.options.center.lng,
|
||||
that.options.center.lat,
|
||||
height
|
||||
]
|
||||
})
|
||||
setTimeout(() => {
|
||||
that
|
||||
.getClampToHeight({
|
||||
lng: that.options.center.lng,
|
||||
lat: that.options.center.lat
|
||||
}, objectsToExclude)
|
||||
.then(height => {
|
||||
that.label.position = [
|
||||
that.options.center.lng,
|
||||
that.options.center.lat,
|
||||
height
|
||||
]
|
||||
})
|
||||
}, 200);
|
||||
setTimeout(() => {
|
||||
createNodePoints(positions[1], 'sector-start')
|
||||
createNodePoints(positions[positions.length - 4], 'sector-end')
|
||||
@ -1681,7 +1683,7 @@ class SectorObject extends Base {
|
||||
|
||||
that.heightMode = that.heightMode
|
||||
|
||||
cb('', {...that.options.center})
|
||||
cb('', { ...that.options.center })
|
||||
})
|
||||
}, 200);
|
||||
async function createNodePoints(pos, type) {
|
||||
|
||||
Reference in New Issue
Block a user