diff --git a/src/jlmap3d/jl3dtrafficplan/jl3dsandboxtest.js b/src/jlmap3d/jl3dtrafficplan/jl3dsandboxtest.js index 59ff72094..6d1dfb080 100644 --- a/src/jlmap3d/jl3dtrafficplan/jl3dsandboxtest.js +++ b/src/jlmap3d/jl3dtrafficplan/jl3dsandboxtest.js @@ -54,6 +54,17 @@ export function Jl3dSandBoxTest(dom,textUi,skinCode,routegroup,token) { renderer.render( scene, camera ); controls.update(); + const dist = camera.position.y; + const vFOV = THREE.Math.degToRad(camera.fov); + const size = 1 * Math.tan(vFOV / 2) * dist; + const scaleFactor = 130; + const scale = size / scaleFactor; + for(let i=0;i