|
@@ -136785,7 +136785,14 @@ ENDSEC
|
|
|
|
|
|
updateMarkerVisibles(){//限制显示的marker个数,因镜头内marker多的时候可能会卡
|
|
updateMarkerVisibles(){//限制显示的marker个数,因镜头内marker多的时候可能会卡
|
|
if(!Potree.settings.ifShowMarker)return
|
|
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绝对可见
|
|
const minRadius = 8 * this.images360.zoomLevel, //当视线垂直于marker时的最小可见距离,此范围内可见的pano绝对可见
|
|
maxRadius = 50 * this.images360.zoomLevel, //当视线垂直于marker时的最大可见距离,此范围外绝对不可见
|
|
maxRadius = 50 * this.images360.zoomLevel, //当视线垂直于marker时的最大可见距离,此范围外绝对不可见
|