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 Apr 4, 2024
1 parent 392e03f commit d4faed4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
10 changes: 10 additions & 0 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.1.3",
"@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 d4faed4

Please sign in to comment.