修复扇形二次编辑时标注未贴合实体的问题
This commit is contained in:
@ -1922,6 +1922,19 @@ class SectorObject extends Base {
|
||||
that.cartesian3Towgs84(positions[1], that.sdk.viewer),
|
||||
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(() => {
|
||||
createNodePoints(positions[1], 'sector-start')
|
||||
createNodePoints(positions[positions.length - 4], 'sector-end')
|
||||
|
Reference in New Issue
Block a user