Skip to content

Commit 0e25074

Browse files
author
jannik brack
committed
Map rotation settings changed. PointCloud Rotates to an angle where the pointcloud is in a good-looking position
1 parent 69adee6 commit 0e25074

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pointcloud/src/App.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ function App() {
1010
style: "https://wms.wheregroup.com/tileserver/style/osm-bright.json",
1111
zoom: 10,
1212
maxZoom: 24,
13-
center: [7.842609, 47.997791]
13+
center: [7.842609, 47.997791],
14+
pitch: 60,
15+
bearing: 188
1416
}}
1517
style={{position: "absolute", top: 0, bottom: 0, left: 0, right: 0}}
1618
/>

pointcloud/src/LasLayer.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ const MlLasLayer = () => {
9191
console.error("Fehler beim Laden der Punktwolke:", error);
9292
} finally {
9393
setLoading(false);
94-
mapHook.map.setPitch(60);
95-
mapHook.map.rotateTo(110);
9694
}
9795
};
9896

0 commit comments

Comments
 (0)