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