letzte Änderungen + build

This commit is contained in:
2026-06-16 20:55:29 +02:00
parent 792d515b2d
commit 8f15898a0d
36 changed files with 7486 additions and 89 deletions
+13 -3
View File
@@ -44,7 +44,9 @@ map.on('load', () => {
collapsed: false,
pointSize: 2,
colorScheme: 'rgb', // 'elevation' oder 'rgb'
pickable: false
pointBudget: 3000000,
maxRequests: 32,
pickable: false,
});
// COPC-Datei laden
@@ -69,6 +71,7 @@ viewer.orbitControls.enabled = false;
viewer.fpControls.enabled = false;
viewer.deviceControls.enabled = false;
elRenderArea.style.display='none';
viewer.setPointBudget(3000000)
function resetLidarControl() {
if (!lidarControl) return;
@@ -82,6 +85,8 @@ function resetLidarControl() {
collapsed: false,
pointSize: currentPointSize > 0 ? currentPointSize : 2,
colorScheme: currentColorMode === 'rgb' ? 'rgb' : 'elevation',
pointBudget: 3000000,
maxRequests: 32,
pickable: false
});
map.addControl(lidarControl, 'top-right');
@@ -129,6 +134,7 @@ function applyDeckGLSettings() {
lidarControl.setPointSize(currentPointSize > 0 ? currentPointSize : 2);
lidarControl.setColorScheme(currentColorMode === 'rgb' ? 'rgb' : 'elevation');
lidarControl.setColormap('jet');
//lidarControl.setPointBudget(3000000);
} catch(e) { console.warn("LidarControl API:", e); }
}
@@ -163,14 +169,18 @@ function switchRenderer(renderer) {
}
function applyVisibility() {
if (currentRenderer === 'potree' && currentPointCloud) {
currentPointCloud.visible = isVisible;
}
if (currentRenderer === 'deckgl' && lidarControl) {
try { lidarControl.setVisible(isVisible); } catch(e) { console.warn("setVisible:", e); }
if (currentRenderer === 'deckgl') {
lidarControl.setPointSize(isVisible ? 2 : 0);
}
}
function applyColorModePotree() {
if (!currentPointCloud) return;
let mat = currentPointCloud.material;