Browse Source

fix: laserroot

xzw 8 months ago
parent
commit
a19e8a265a
1 changed files with 3 additions and 9 deletions
  1. 3 9
      src/sdk/cover/index.js

+ 3 - 9
src/sdk/cover/index.js

@@ -59,12 +59,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot }) => {
         }
     }
     
-    console.log(laserRoot)
-    if(laserRoot){
-        /* Potree.loadDatasets = function(callback,sceneCode,onError){
-            return Potree.loadFile(laserRoot+'/getDataSet', null, callback,onError)
-        } */
-    }
+   
     
     const mapBus = mitt(), sceneBus = mitt()
 
@@ -1760,9 +1755,8 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot }) => {
 
         prop.unlit = prop.renderType != 'normal'
         prop.maximumScreenSpaceError = 70
-        prop.prefix = prop.raw.prefix
-        
-        laserRoot && (prop.prefix = laserRoot)
+        prop.prefix = prop.raw.prefix 
+        laserRoot != void 0 && (prop.prefix = laserRoot) //prefix for getdataset
         Potree.addModel(prop, prop.done, prop.progressFun, prop.onError)
         prop.loading = true