globe.gl 2.41.5 → 2.41.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64,11 +64,16 @@
64
64
  const gmst = satellite.gstime(time);
65
65
  satData.forEach(d => {
66
66
  const eci = satellite.propagate(d.satrec, time);
67
- if (eci.position) {
67
+ if (eci?.position) {
68
68
  const gdPos = satellite.eciToGeodetic(eci.position, gmst);
69
69
  d.lat = satellite.radiansToDegrees(gdPos.latitude);
70
70
  d.lng = satellite.radiansToDegrees(gdPos.longitude);
71
- d.alt = gdPos.height / EARTH_RADIUS_KM
71
+ d.alt = gdPos.height / EARTH_RADIUS_KM;
72
+ } else {
73
+ // explicitly handle invalid position
74
+ d.lat = NaN;
75
+ d.lng = NaN;
76
+ d.alt = NaN;
72
77
  }
73
78
  });
74
79
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "globe.gl",
3
- "version": "2.41.5",
3
+ "version": "2.41.6",
4
4
  "description": "UI component for Globe Data Visualization using ThreeJS/WebGL",
5
5
  "type": "module",
6
6
  "unpkg": "dist/globe.gl.min.js",