Skip to content

Commit

Permalink
feat(globe): update esa-webgl-globe to 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Helms authored and Andreas Helms committed Mar 28, 2024
1 parent a00b759 commit 6eec037
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"dependencies": {
"@datapunt/matomo-tracker-react": "^0.5.1",
"@reduxjs/toolkit": "^1.9.0",
"@ubilabs/esa-webgl-globe": "^1.0.14",
"@ubilabs/esa-webgl-globe": "^1.2.0",
"classnames": "^2.2.6",
"cross-zip": "^4.0.0",
"electron-is-dev": "^2.0.0",
Expand Down
6 changes: 6 additions & 0 deletions src/scripts/components/main/globe/globe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ function useWebGlGlobe(view: CameraView) {

const newGlobe = new WebGlGlobe(containerEl, {cameraView: view});

if ('renderer' in newGlobe) {
// @TODO: Remove this setting after globe controls have been refactored.
// @ts-ignore Property 'renderer' is private and only accessible within class 'WebGlGlobe'.
newGlobe.renderer.globeControls.zoomSpeed = 1.5;
}

setGlobe(newGlobe);

return () => newGlobe.destroy();
Expand Down

0 comments on commit 6eec037

Please sign in to comment.