소스 검색

fix: map limitbound

xzw 1 년 전
부모
커밋
49b615350f
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/sdk/cover/index.js

+ 1 - 0
src/sdk/cover/index.js

@@ -457,6 +457,7 @@ export const enter = (dom, mapDom, isLocal, lonlat) => {
                 //--------------------------------
                 viewer.mapViewer = new Potree.MapViewer(mapArea)
                 viewer.mapViewer.initProjection() 
+                viewer.mapViewer.setViewLimit('standard')
                 //focus
                 let boundSize = new THREE.Vector3(200,150,1).max(viewer.bound.boundSize)