Fix NodeLocationMap height and always show center dot

- Pass fullHeight to NodeLocationMap in NodeDetail so it fills the
  h-[400px] wrapper rather than rendering its own h-[300px] and
  leaving dead space below
- Always show the center dot in NodeLocationMap: the previous threshold
  (accuracyMeters < 100) suppressed the dot for typical Meshtastic
  precision values (10-13 bits → 2-10km accuracy), making the map
  appear empty even when a location was known

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Daniel Pupius
2026-03-15 23:43:03 +00:00
parent 8a521d54f2
commit 7e173c1b63
2 changed files with 2 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ export const NodeLocationMap: React.FC<NodeLocationMapProps> = ({
}) => {
const accuracyMeters = calculateAccuracyFromPrecisionBits(precisionBits);
const effectiveZoom = zoom ?? calculateZoomFromAccuracy(accuracyMeters);
const showCenterDot = precisionBits === undefined || accuracyMeters < 100;
const showCenterDot = true;
const markerGeoJSON = useMemo((): FeatureCollection => ({
type: "FeatureCollection",

View File

@@ -589,6 +589,7 @@ export const NodeDetail: React.FC<NodeDetailProps> = ({ nodeId }) => {
lat={latitude}
lng={longitude}
precisionBits={precisionBits}
fullHeight
/>
</div>
<NodePositionData