|
@@ -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
|
|
|
|