修复扇形二次编辑时标注未贴合实体的问题
This commit is contained in:
@ -1560,7 +1560,7 @@ class SectorObject extends Base {
|
|||||||
_addRr() {
|
_addRr() {
|
||||||
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
if (this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' ,
|
name: '全景图',
|
||||||
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
url: this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value
|
||||||
})
|
})
|
||||||
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
this._DialogObject._element.content.getElementsByClassName('vr_add')[0].value = ''
|
||||||
@ -1573,7 +1573,7 @@ class SectorObject extends Base {
|
|||||||
|
|
||||||
addAttributeRr(vr) {
|
addAttributeRr(vr) {
|
||||||
this.options.attribute.vr.content.push({
|
this.options.attribute.vr.content.push({
|
||||||
name: '全景图' ,
|
name: '全景图',
|
||||||
url: vr
|
url: vr
|
||||||
})
|
})
|
||||||
this.attributeVr = this.options.attribute.vr.content
|
this.attributeVr = this.options.attribute.vr.content
|
||||||
@ -1922,6 +1922,19 @@ class SectorObject extends Base {
|
|||||||
that.cartesian3Towgs84(positions[1], that.sdk.viewer),
|
that.cartesian3Towgs84(positions[1], that.sdk.viewer),
|
||||||
that.cartesian3Towgs84(positions[positions.length - 4], 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(() => {
|
setTimeout(() => {
|
||||||
createNodePoints(positions[1], 'sector-start')
|
createNodePoints(positions[1], 'sector-start')
|
||||||
createNodePoints(positions[positions.length - 4], 'sector-end')
|
createNodePoints(positions[positions.length - 4], 'sector-end')
|
||||||
|
Reference in New Issue
Block a user