Skip to content

Stop the map compass drawing over the account avatar - #71

Merged
dfalling merged 1 commit into
mainfrom
investigate-viwoods-render
Aug 15, 2026
Merged

Stop the map compass drawing over the account avatar#71
dfalling merged 1 commit into
mainfrom
investigate-viwoods-render

Conversation

@dfalling

Copy link
Copy Markdown
Owner

Summary

On a Viwoods Paper e-ink tablet a solid black disc sits in the top-right corner, behind the account avatar. It's MapLibre's compass ornament.

Measuring the screenshot pinned it down: the disc is 40dp with a ~6.5dp right margin and a top of 42dp (status bar inset) + 6.5dp, which matches the native MapLibre attribution ornament's margin — not the avatar's right: 16. So it's a native map ornament, not app chrome.

We never passed compass, and leaving it unset doesn't leave the compass off. MLRNMapView.kt:1272 only calls setCompassEnabled when the prop is non-null, so MapLibre's own default takes over: enabled, and merely faded out while the map faces north. Devices that skip that fade animation draw it for real.

We never rotate the map, so compass={false} explicitly rather than relying on an animation to hide it.

Testing

  • tsc --noEmit, biome check, and all 51 tests pass.
  • None of that exercises the change — it's a native prop, so it needs a device run to confirm the disc is gone. Author is retesting on mobile.

Not addressed

The other half of the report — no recenter button in the bottom-right on this device — is not a render bug. MapScreen.tsx:534 gates it on position, which requires a location fix; the device was in airplane mode and showed no <UserLocation> puck either. Whether the tablet can get a fix at all is a separate question.

Leaving `compass` unset doesn't leave the compass off: the native view only
forwards the prop when it's non-null, so MapLibre's own default takes over —
enabled, and merely faded out while the map faces north. Devices that skip
that fade animation draw it for real, as a disc sitting over the top-right
corner behind the account button. Seen on a Viwoods Paper e-ink tablet.

We never rotate the map, so there's nothing for a compass to say. Turn it off
explicitly rather than relying on an animation to hide it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dfalling
dfalling enabled auto-merge (squash) August 15, 2026 14:29
@dfalling
dfalling merged commit f44094a into main Aug 15, 2026
2 checks passed
@dfalling
dfalling deleted the investigate-viwoods-render branch August 15, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant