xzw 1 week ago
parent
commit
a7410f0cf9
1 changed files with 5 additions and 7 deletions
  1. 5 7
      src/sdk/cover/index.js

+ 5 - 7
src/sdk/cover/index.js

@@ -5,8 +5,7 @@ import libTransform from 'coordtransform';
 //实时加载路径的版本
 
 
-
-
+ 
 let aniPaths = [], pathDevices = [], pathHistorys = new Map,  pathModels = {}, camFollowDevice,  modelDisToCam
 let createAnimatePath = (token)=>{//实时路径  保存:generateAniPathData
     let caseId = Potree.browser.urlHasValue('caseId',true)  
@@ -2174,8 +2173,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
 
 
 
-        createPath(props){//路线
-        
+        createPath(props){//路线 
             //console.log('createPath', props)
             let bus = mitt()
             
@@ -2623,12 +2621,12 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
             modelDisToCam = 4 //拉进
         },
         
-        generateAniPathData(){//输出实时路径的数据保存
-            
+        generateAniPathData(startId=0){//输出实时路径的数据保存
+            startId = parseInt(startId)
             
             let dataAll = aniPaths.map((path,i)=>{
                 let data = {
-                    "id": "00" + pathDevices[i].macId,   //不知道存多少 怕和之前的混淆所以加一个00前缀
+                    "id": startId + '_macId:'+pathDevices[i].macId  ,   //不知道存多少 怕和之前的混淆 
                     isAnimate:1,
                    // "lineColor": "#ffffff",
                     "lineAltitudeAboveGround": 5,