From 3d05e54943ecb26fc8023e0a7cbdddbfaf2f0c35 Mon Sep 17 00:00:00 2001 From: Arne Zitting Date: Wed, 29 Apr 2026 10:41:11 +0200 Subject: [PATCH] Test Lidar Daten laden (langsam) --- index.html | 3 +++ main.js | 15 +++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index e93c795..6619cd8 100644 --- a/index.html +++ b/index.html @@ -24,6 +24,9 @@ +

+ Punktwolke ausblenden +

diff --git a/main.js b/main.js index c705d84..f2c4658 100644 --- a/main.js +++ b/main.js @@ -13,10 +13,18 @@ const map = new maplibregl.Map({ zoom: 17 }); -/* + const layer = new PointCloudLayer({ - data: '/3dm_32_285_5653_1_nw.copc_WGS84.laz', + data: '/punktwolke subsample test.laz', loaders: [LASLoader], + + // 1. Set the coordinate system to meter offsets + coordinateSystem: COORDINATE_SYSTEM.METER_OFFSETS, + + // 2. Set the anchor point [longitude, latitude, elevation] + coordinateOrigin: [9.209116842757239, 52.26520546238239], + pointSize: 1, + getColor: [255,255,255] }); @@ -25,7 +33,7 @@ const overlay = new MapboxOverlay({ }); map.addControl(overlay); -*/ + // Hintergrundkarte ändern @@ -164,4 +172,3 @@ document.getElementById("resetBtn").addEventListener("click", () => { map.resetNorth(); }); -//Test \ No newline at end of file