mirror of
https://github.com/dpup/meshstream.git
synced 2026-03-28 17:42:37 +01:00
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:
@@ -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",
|
||||
|
||||
@@ -589,6 +589,7 @@ export const NodeDetail: React.FC<NodeDetailProps> = ({ nodeId }) => {
|
||||
lat={latitude}
|
||||
lng={longitude}
|
||||
precisionBits={precisionBits}
|
||||
fullHeight
|
||||
/>
|
||||
</div>
|
||||
<NodePositionData
|
||||
|
||||
Reference in New Issue
Block a user