|
@@ -361,8 +361,13 @@ export function start(dom, mapDom, number ){ //t-Zvd3w0m
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
- if(dataset.has_ir){//红外热成像漫游点数据
|
|
|
- pointcloud.typesUrl = `${Potree.settings.urls.prefix1}/${Potree.settings.webSite2 || Potree.settings.webSite}/${pointcloud.sceneCode}/data/${pointcloud.sceneCode}/imagemap/`
|
|
|
+ if(dataset.has_ir){//红外热成像漫游点数据
|
|
|
+ /* if(Potree.settings.isLocal && dataset.mapping){
|
|
|
+ var cloudPath = `${Potree.settings.urls.prefix1}/${dataset.mapping}/${dataset.webBin}` //webBin添加原因:每次裁剪之类的操作会换路径,因为oss文件缓存太严重,更新慢
|
|
|
+ } */
|
|
|
+ let mapping = Potree.settings.isLocal && dataset.mapping ? dataset.mapping : ''
|
|
|
+
|
|
|
+ pointcloud.typesUrl = `${Potree.settings.urls.prefix1}/${mapping}/${Potree.settings.webSite2 || Potree.settings.webSite}/${pointcloud.sceneCode}/data/${pointcloud.sceneCode}/imagemap/`
|
|
|
let typesUrl = pointcloud.typesUrl + 'types.json'
|
|
|
Potree.loadFile(typesUrl,null,(e)=>{
|
|
|
e.imagemap_types.forEach(o=>{
|
|
@@ -373,6 +378,9 @@ export function start(dom, mapDom, number ){ //t-Zvd3w0m
|
|
|
})
|
|
|
})
|
|
|
f()
|
|
|
+ },()=>{
|
|
|
+ console.error('红外热成像数据加载失败 ')
|
|
|
+ f()
|
|
|
})
|
|
|
}else{
|
|
|
f()
|