zoom angepasst

This commit is contained in:
2026-05-11 21:15:27 +00:00
parent 35af7fd3e3
commit b682c7b324

View File

@@ -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;