二三维
This commit is contained in:
@ -231,7 +231,11 @@ async function syncData2(sdk, id, entityId) {
|
|||||||
if (obj.showView == 3) {
|
if (obj.showView == 3) {
|
||||||
options.show = false
|
options.show = false
|
||||||
}
|
}
|
||||||
let target = await new obj.constructor(sdk2D, options)
|
let target = await sdk2D.entityMap.get(options.id)
|
||||||
|
if(target) {
|
||||||
|
await target.remove()
|
||||||
|
}
|
||||||
|
target = await new obj.constructor(sdk2D, options)
|
||||||
target.onClick = obj.onClick
|
target.onClick = obj.onClick
|
||||||
target.onRightClick = obj.onRightClick
|
target.onRightClick = obj.onRightClick
|
||||||
target.onMouseMove = obj.onMouseMove
|
target.onMouseMove = obj.onMouseMove
|
||||||
|
@ -1526,6 +1526,9 @@ class GroundSvg extends Base {
|
|||||||
controlPoints[9] = turf.destination(point, wh, 0 + angle, options).geometry.coordinates
|
controlPoints[9] = turf.destination(point, wh, 0 + angle, options).geometry.coordinates
|
||||||
|
|
||||||
this.controlPoints = controlPoints
|
this.controlPoints = controlPoints
|
||||||
|
if(!this.sdk || !this.sdk.viewer) {
|
||||||
|
return
|
||||||
|
}
|
||||||
for (let i = 0; i < this.controlPoints.length; i++) {
|
for (let i = 0; i < this.controlPoints.length; i++) {
|
||||||
let color = '#00ff0a'
|
let color = '#00ff0a'
|
||||||
if (i === 5) {
|
if (i === 5) {
|
||||||
|
Reference in New Issue
Block a user