소스 검색

fix: marker在俯视图可能看不到的bug

xzw 2 년 전
부모
커밋
adf79b3116
2개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 8 1
      public/static/lib/potree/potree.js
  2. 1 1
      public/static/lib/potree/potree.js.map

+ 8 - 1
public/static/lib/potree/potree.js

@@ -136785,7 +136785,14 @@ ENDSEC
 	    
 	    updateMarkerVisibles(){//限制显示的marker个数,因镜头内marker多的时候可能会卡 
 	        if(!Potree.settings.ifShowMarker)return
-	       
+	        
+	        if(this.mainViewport.camera.type == 'OrthographicCamera'){ 
+	            viewer.images360.panos.forEach(pano=>{ 
+	                Potree.Utils.updateVisible(pano.marker, 'limitMarkerShow', true );  
+	            }); 
+	            return 
+	        }
+	        
 	        
 	        const minRadius = 8 * this.images360.zoomLevel,  //当视线垂直于marker时的最小可见距离,此范围内可见的pano绝对可见
 	            maxRadius = 50 * this.images360.zoomLevel,    //当视线垂直于marker时的最大可见距离,此范围外绝对不可见

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
public/static/lib/potree/potree.js.map