zoom angepasst
This commit is contained in:
2
main.js
2
main.js
@@ -105,7 +105,7 @@ function syncCamera() {
|
|||||||
const canvas = map.getCanvas();
|
const canvas = map.getCanvas();
|
||||||
const metersPerPixel = (earthCircumference * Math.cos(mapCenter.lat * Math.PI / 180))
|
const metersPerPixel = (earthCircumference * Math.cos(mapCenter.lat * Math.PI / 180))
|
||||||
/ (Math.pow(2, zoom) * 512);
|
/ (Math.pow(2, zoom) * 512);
|
||||||
const radius = metersPerPixel * canvas.height;
|
const radius = Math.pow(2,20 -zoom)*2;
|
||||||
|
|
||||||
// Potree View direkt setzen
|
// Potree View direkt setzen
|
||||||
const view = viewer.scene.view;
|
const view = viewer.scene.view;
|
||||||
|
|||||||
Reference in New Issue
Block a user