Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Add a compass indicator

Description

Because we're using MapLibre-compose in Cardinal which doesn't support MapLibre-Native LocationComponent we have to add our own location puck + compass. This is what I was able to come up with, but we can style it however we want.

Technical details

I also added magnetic field declination compensation, which the original MapLibre location component we're using doesn't even have! So this is much more accurate worldwide than Atlas. I had no idea. This is why the compass always felt a little bit "off" here in Seattle. In Europe declination is quite a bit smaller in magnitude which is why nobody on the team reported it I think. I personally just thought it was my phone's magnetometer being poor-quality or something.

Screenshots

These screenshots are of the same device pointing as close as I can to true north (measured by the street grid) Atlas left, Cardinal right.

signal-2025-10-01-193849_003signal-2025-10-01-204029

The timestamps are different because I updated the compass icon in a later commit and wanted to capture the new design.

Issues

Fixes #1 (closed)

10 commandments of code review

👪 ❤️ https://gitlab.e.foundation/groups/e/-/wikis/contribute/development-processes/code-review-guidelines

Edited by Ellen Poe

Merge request reports

Loading