|
@@ -2174,7 +2174,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
|
|
|
|
|
|
createPath(props){//路线
|
|
|
- //console.log('createPath', props)
|
|
|
+ console.log('createPath', props)
|
|
|
let bus = mitt()
|
|
|
|
|
|
|
|
@@ -2187,8 +2187,8 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
})
|
|
|
viewer.dispatchEvent({ type: 'cancel_insertions', dontRemove: true, measure:path }) //要等进入编辑才能继续编辑
|
|
|
}else{
|
|
|
- if(!props.isAnimate){
|
|
|
- let originPointCount = props.points.length
|
|
|
+ let originPointCount = props.points.length
|
|
|
+ if(!props.isAnimate){
|
|
|
props.points = props.points.filter(e=> isValidPoint(e.modelId))
|
|
|
info.points_datasets = props.points.map(e=> e.modelId == Id_noIntersect ? null : e.modelId)
|
|
|
info.dataset_points = info.points = props.points.map(e=>e.position)//当该点不在任何模型上时,记录的是世界坐标,所以两个都赋值,过后根据有无datasetID选择
|