xzw hace 8 meses
padre
commit
2f514482ab
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      src/sdk/cover/index.js

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

@@ -26,7 +26,7 @@ let cesAspect
 
 
 
-export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot }) => {
+export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOSSRoot }) => {
     
     console.warn('新的页面')
     Potree.settings.isOfficial = true //标记为正式、非测试版本 
@@ -61,6 +61,10 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot }) => {
     if(laserRoot != void 0){
         Potree.settings.urls.prefix = laserRoot
     }
+    //laserOSSRoot = 'https://192.168.0.25/laser-data'
+    if(laserOSSRoot != void 0){
+        Potree.settings.urls.prefix1 /* = Potree.settings.urls.prefix3  */= laserOSSRoot 
+    }