You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to track satellite position around the globe in "almost" real time via TLE data.
I am using React hooks to initialize the marker state, and a useEffect to update the marker state.
However, while I can monitor that the coordinates of the markers are indeed changing, the rendered position on the globe is not moving.
I have to reload the whole page to have the marker move.
Hey Buddy!
I think it is more a question for StackOverflow than here. But you probably already figured out the issue and forget to close this issue?
I see 2 issues in your code:
It doesn't compile since your return expression should be linted with "JSX expressions must have one parent element."
You added these 2 lines globe && globe.updateMarkers(marks);globe && globe.updateMarkers(markers) that are probably conflicting with the state since the setMarkersis executed asynchronously whereas your globe.updateMarkers calls are executed synchronously. Does it work if you delete these 2 lines?
I am trying to track satellite position around the globe in "almost" real time via TLE data.
I am using React hooks to initialize the marker state, and a useEffect to update the marker state.
However, while I can monitor that the coordinates of the markers are indeed changing, the rendered position on the globe is not moving.
I have to reload the whole page to have the marker move.
`
`
The text was updated successfully, but these errors were encountered: