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