|
@@ -1167,10 +1167,11 @@ export class Viewer extends ViewerBase{
|
|
|
updatePanosVisibles(currentFloor){//显示当前楼层的所有panos
|
|
|
if(!Potree.settings.ifShowMarker)return
|
|
|
let inEntity = currentFloor
|
|
|
- if(!inEntity) inEntity = this.atDatasets[0]
|
|
|
+
|
|
|
|
|
|
viewer.images360.panos.forEach(pano=>{
|
|
|
- let visible = inEntity && inEntity.panos.includes(pano)
|
|
|
+ let visible = inEntity ? inEntity.panos.includes(pano) : this.atDatasets.some(e=>e.panos.includes(pano))
|
|
|
+
|
|
|
Potree.Utils.updateVisible(pano, 'buildingChange', visible, 2)
|
|
|
})
|
|
|
this.dispatchEvent('content_changed')
|
|
@@ -3252,7 +3253,7 @@ export class Viewer extends ViewerBase{
|
|
|
}else{
|
|
|
this.renderer.setViewport(left, bottom, width, height) //规定视口,影响图形变换(画布的使用范围)
|
|
|
}
|
|
|
- scissorTest && console.log('setScissor', left, bottom, width, height)
|
|
|
+ //scissorTest && console.log('setScissor', left, bottom, width, height)
|
|
|
scissorTest && this.renderer.setScissor( left, bottom, width, height );//规定渲染范围
|
|
|
this.renderer.setScissorTest( scissorTest );//开启WebGL剪裁测试功能,如果不开启,.setScissor方法设置的范围不起作用 | width==1且height==1时开启会只有鼠标的地方刷新,很奇怪
|
|
|
|
|
@@ -3888,7 +3889,7 @@ export class Viewer extends ViewerBase{
|
|
|
updateCamera()
|
|
|
if(useMap){
|
|
|
let waitMap = ()=>{
|
|
|
- console.log('waitMap: '+sid, Date.now(), this.mapViewer.mapLayer.loadingInProgress )
|
|
|
+ console.log('waitMap: '+startTime, Date.now(), this.mapViewer.mapLayer.loadingInProgress )
|
|
|
this.mapViewer.waitLoadDone(screenshot.bind(this))//等待地图所有加载完
|
|
|
}
|
|
|
this.waitPointLoad(waitMap,info.maxTimeForPointLoad)
|
|
@@ -3899,7 +3900,7 @@ export class Viewer extends ViewerBase{
|
|
|
|
|
|
let {promise} = this.focusOnObject(info.measurement, 'measure', 0, {
|
|
|
basePanoSize:1024, gotoBestView:true,
|
|
|
- minMapWidth: THREE.Math.clamp(Math.min(viewer.bound.boundSize.x, viewer.bound.boundSize.y) / (this.mapViewer.mapLayer.maps.find(e=>e.name == 'map').disabled ? 6 : 3), 2, 25) //有地图的话为了显示出名字需要更大范围
|
|
|
+ minMapWidth: THREE.Math.clamp(Math.min(viewer.bound.boundSize.x, viewer.bound.boundSize.y) / (8/* this.mapViewer.mapLayer.maps.find(e=>e.name == 'map').disabled ? 6 : 3*/), 2, 25) //有地图的话为了显示出名字需要更大范围
|
|
|
})//注意:不同角度截图 得到三维的会不一样,因为focusOnObject是根据方向的
|
|
|
promise.done(()=>{
|
|
|
//console.log('promise.done')
|