From b682c7b3249d12382bb5b640467b6b0326dbb81f Mon Sep 17 00:00:00 2001 From: ha2622 Date: Mon, 11 May 2026 21:15:27 +0000 Subject: [PATCH] zoom angepasst --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index b91b6b7..5c30c3b 100644 --- a/main.js +++ b/main.js @@ -105,7 +105,7 @@ function syncCamera() { const canvas = map.getCanvas(); const metersPerPixel = (earthCircumference * Math.cos(mapCenter.lat * Math.PI / 180)) / (Math.pow(2, zoom) * 512); - const radius = metersPerPixel * canvas.height; + const radius = Math.pow(2,20 -zoom)*2; // Potree View direkt setzen const view = viewer.scene.view;