dengdeyan commited on
Commit
fb419a3
·
1 Parent(s): 4b1dba9

add satellite gs

Browse files
client/src/components/MeasurePanel.jsx CHANGED
@@ -150,7 +150,9 @@ export default function MeasurePanel({
150
  // Allow deselecting
151
  const nextIndex = selectedIndex === index ? null : index;
152
  setSelectedIndex(nextIndex);
153
- if (onSelectPoint) onSelectPoint(points[index]);
 
 
154
  };
155
 
156
  const openCustomDialog = () => {
@@ -333,7 +335,13 @@ export default function MeasurePanel({
333
  >
334
  <ListItemText
335
  primary={`Point ${p.id}`}
336
- secondary={`(${p.lat.toFixed(8)}, ${p.lon.toFixed(8)}, ${p.alt.toFixed(4)}) | σ = ${p.accuracy.toFixed(3)} m`}
 
 
 
 
 
 
337
  />
338
  </ListItemButton>
339
  {index < points.length - 1 && <Divider component="li" />}
 
150
  // Allow deselecting
151
  const nextIndex = selectedIndex === index ? null : index;
152
  setSelectedIndex(nextIndex);
153
+ if (onSelectPoint) {
154
+ onSelectPoint(nextIndex === null ? null : points[nextIndex]);
155
+ }
156
  };
157
 
158
  const openCustomDialog = () => {
 
335
  >
336
  <ListItemText
337
  primary={`Point ${p.id}`}
338
+ secondary={(
339
+ <>
340
+ {`[${p.lat.toFixed(8)}°, ${p.lon.toFixed(8)}°, ${p.alt.toFixed(4)} m]`}
341
+ <br />
342
+ {`σ = ${p.accuracy.toFixed(3)} m`}
343
+ </>
344
+ )}
345
  />
346
  </ListItemButton>
347
  {index < points.length - 1 && <Divider component="li" />}
client/src/pages/Home.jsx CHANGED
@@ -47,6 +47,14 @@ const BASE_MODELS = [
47
  bucket: getDefaultBucket(),
48
  offsetHeight: -730,
49
  },
 
 
 
 
 
 
 
 
50
  ];
51
 
52
  function buildTilesetUrls(model) {
@@ -397,6 +405,10 @@ export default function Home() {
397
  };
398
  const handleSelectPoint = (point) => {
399
  if (!cesiumRef.current) return;
 
 
 
 
400
  setSelectedPoint(point.id);
401
  console.log("Selected point for inspection:", point);
402
  };
 
47
  bucket: getDefaultBucket(),
48
  offsetHeight: -730,
49
  },
50
+ {
51
+ id: "Satellite image GS",
52
+ name: "Satellite image GS",
53
+ tilesets: ["JAX251/tileset.json"],
54
+ prefix: "data/3dtiles",
55
+ bucket: getDefaultBucket(),
56
+ offsetHeight: 0,
57
+ },
58
  ];
59
 
60
  function buildTilesetUrls(model) {
 
405
  };
406
  const handleSelectPoint = (point) => {
407
  if (!cesiumRef.current) return;
408
+ if (!point) {
409
+ setSelectedPoint(0);
410
+ return;
411
+ }
412
  setSelectedPoint(point.id);
413
  console.log("Selected point for inspection:", point);
414
  };