From d7f5297f6e890e39d5c5c1d01eb3fd039f0e4219 Mon Sep 17 00:00:00 2001 From: Dennis Falling Date: Sat, 15 Aug 2026 15:26:59 +0100 Subject: [PATCH] Stop the map compass drawing over the account avatar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- src/map/MapScreen.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/map/MapScreen.tsx b/src/map/MapScreen.tsx index 279071e..9e4b352 100644 --- a/src/map/MapScreen.tsx +++ b/src/map/MapScreen.tsx @@ -518,6 +518,12 @@ export function MapScreen() { ref={mapRef} mapStyle={theme.mapStyleUrl} style={styles.map} + // Left unset, the compass isn't just off — the native view keeps + // MapLibre's own default, which is *on* and merely faded out while the + // map faces north. Devices that skip that fade animation draw it for + // real, as a disc over the top-right corner. We never rotate the map, + // so turn it off explicitly. + compass={false} onPress={() => setSelectedElementId(null)} onRegionDidChange={onRegionDidChange}>