|
@@ -1016,7 +1016,17 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
}
|
|
}
|
|
|
|
|
|
try {
|
|
try {
|
|
- props.url = props.url //去掉 '\'
|
|
|
|
|
|
+ props.url = JSON.parse(props.url).toString() //去掉 '\'
|
|
|
|
+
|
|
|
|
+ if(props.modelType != 'pointcloud' ){//当前本地版这么写
|
|
|
|
+ let addPrefix = (e)=> Potree.settings.urls.getPrefix(3,props) + e
|
|
|
|
+ if(props.url instanceof Array){
|
|
|
|
+ props.url = props.url.map(e=>addPrefix(e))
|
|
|
|
+ }else{
|
|
|
|
+ props.url = addPrefix(props.url)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
} catch (e) { }
|
|
} catch (e) { }
|
|
|
|
|
|
props.done = done; props.progressFun = progressFun; props.onError = onError
|
|
props.done = done; props.progressFun = progressFun; props.onError = onError
|