xzw 8 months ago
parent
commit
d19012d9bf
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/sdk/cover/index.js

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

@@ -58,8 +58,11 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot }) => {
             } 
         }
     }
+    if(laserRoot != void 0){
+        Potree.settings.urls.prefix = laserRoot
+    }
+    
     
-   
     
     const mapBus = mitt(), sceneBus = mitt()
 
@@ -1756,7 +1759,9 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot }) => {
         prop.unlit = prop.renderType != 'normal'
         prop.maximumScreenSpaceError = 70
         prop.prefix = prop.raw.prefix 
-        laserRoot != void 0 && (prop.prefix = laserRoot) //prefix for getdataset
+        /* laserRoot != void 0 && (prop.prefix = laserRoot) //prefix for getdataset
+        //Potree.settings.urls.prefix = prop.prefix = '' */
+        
         Potree.addModel(prop, prop.done, prop.progressFun, prop.onError)
         prop.loading = true