Skip to content

Commit d600e1f

Browse files
committed
Apply TypeScript fixes from Jules CI/CD fix branch
- Add Cartesian2 import for click handler - Prefix unused component params with underscore - Fix click handler position type (Cartesian3 → Cartesian2) - Add @ts-ignore for Cesium imagery provider types issue
1 parent a46db35 commit d600e1f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

frontend/web/src/components/Globe/CesiumGlobe.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { useEffect, useRef, useState, useCallback } from 'react';
77
import {
88
Viewer,
99
Cartesian3,
10+
Cartesian2,
1011
Color,
1112
Ion,
1213
ScreenSpaceEventHandler,
@@ -65,12 +66,12 @@ interface CesiumGlobeProps {
6566
export default function CesiumGlobe({
6667
satellites = [],
6768
groundStations = [],
68-
orbitTracks,
69+
orbitTracks: _orbitTracks,
6970
showCoverage = true,
7071
showOrbits = true,
7172
onSatelliteSelect,
72-
onGroundStationSelect,
73-
timeOffset = 0,
73+
onGroundStationSelect: _onGroundStationSelect,
74+
timeOffset: _timeOffset = 0,
7475
animationSpeed = 1,
7576
}: CesiumGlobeProps) {
7677
const containerRef = useRef<HTMLDivElement>(null);
@@ -90,6 +91,7 @@ export default function CesiumGlobe({
9091
// Create viewer with OpenStreetMap imagery
9192
const viewer = new Viewer(containerRef.current!, {
9293
// Use OpenStreetMap instead of Cesium Ion
94+
// @ts-ignore - Cesium types issue
9395
imageryProvider: new OpenStreetMapImageryProvider({
9496
url: 'https://tile.openstreetmap.org/',
9597
}),
@@ -235,7 +237,7 @@ export default function CesiumGlobe({
235237

236238
// Handle click events
237239
const handler = new ScreenSpaceEventHandler(viewer.scene.canvas);
238-
handler.setInputAction((click: { position: Cartesian3 }) => {
240+
handler.setInputAction((click: { position: Cartesian2 }) => {
239241
const pickedObject = viewer.scene.pick(click.position);
240242
if (defined(pickedObject) && pickedObject.id) {
241243
const entity = pickedObject.id;

0 commit comments

Comments
 (0)