|
@@ -26,7 +26,8 @@ let cesAspect
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
|
|
|
|
|
|
+export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot }) => {
|
|
|
|
+
|
|
console.warn('新的页面')
|
|
console.warn('新的页面')
|
|
Potree.settings.isOfficial = true //标记为正式、非测试版本
|
|
Potree.settings.isOfficial = true //标记为正式、非测试版本
|
|
//Potree.fileServer = axios
|
|
//Potree.fileServer = axios
|
|
@@ -57,6 +58,14 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes }) => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ console.log(laserRoot)
|
|
|
|
+ if(laserRoot){
|
|
|
|
+ Potree.loadDatasets = function(){
|
|
|
|
+ return laserRoot
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
const mapBus = mitt(), sceneBus = mitt()
|
|
const mapBus = mitt(), sceneBus = mitt()
|
|
|
|
|
|
|
|
|