|
@@ -127,9 +127,9 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
Potree.settings.tiles3DMaxMemory = 300 //稍微增加点
|
|
|
Potree.settings.mergeTransCtlOnClick = true
|
|
|
Potree.settings.canWalkThroughModel = true
|
|
|
- window.cesErrorWords = '由于GPU占用过大, 将关闭地图,请更换更好的显卡!'
|
|
|
+ window.cesErrorWords = '内存占用过高,建议关闭部分场景或升级显卡。'
|
|
|
window.cesErrorCallback = ()=>{
|
|
|
- sdk.setBackdrop('none')
|
|
|
+ //sdk.setBackdrop('none')
|
|
|
}
|
|
|
|
|
|
let { THREE } = Potree.mergeEditStart(dom, mapDom)
|
|
@@ -1750,7 +1750,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
|
|
|
|
|
|
let info = {
|
|
|
position: new THREE.Vector3().copy(props.position), //局部坐标
|
|
|
- normal: new THREE.Vector3().copy(props.normal),
|
|
|
+ normal: props.normal ? new THREE.Vector3().copy(props.normal) : new THREE.Vector3(0,0,1),
|
|
|
root, lineLength: props.altitudeAboveGround,
|
|
|
title: props.title, fontsize: props.fontSize
|
|
|
}
|