meshtastic / Meshtastic-Android

Android application for Meshtastic
https://meshtastic.org
GNU General Public License v3.0
681 stars 196 forks source link

feat: Add position precision indicator to map #1177

Closed jamesarich closed 1 month ago

jamesarich commented 2 months ago

This commit adds a visual indicator to the map that shows the precision of a node's position. The indicator is a circle around the node's marker, and the size of the circle corresponds to the precision of the position.

The precision is determined by the precisionBits field in the node's position data. The higher the precisionBits value, the more precise the position.

This feature helps users to understand the accuracy of the position data displayed on the map.

This should follow closely with @garthvh 's work on Apple here: https://github.com/meshtastic/Meshtastic-Apple/blob/3fc03b721130f3e295a43ccb06395a466faa464e/Meshtastic/Views/Nodes/Helpers/Map/MapContent/MeshMapContent.swift#L134

closes #893

image (1)

prokrypt commented 1 month ago

https://github.com/user-attachments/assets/2dcf04da-e312-4a4a-a05e-658c3b1fc048

also, sometimes the circles are drawn over the node markers and eating taps 🫠

jamesarich commented 1 month ago

screen-20240815-112648.mp4 also, sometimes the circles are drawn over the node markers and eating taps 🫠

1190 is a rework - should help :crossed_fingers: